aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/feedutils.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index eea908fe8..43b95b966 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -2007,9 +2007,9 @@ function atom_entry($item, $type, $author, $owner, $comment = false, $cid = 0, $
if($enclosures) {
foreach($enclosures as $enc) {
$o .= '<link rel="enclosure" '
- . (($enc['href']) ? 'href="' . $enc['href'] . '" ' : '')
- . (($enc['length']) ? 'length="' . $enc['length'] . '" ' : '')
- . (($enc['type']) ? 'type="' . $enc['type'] . '" ' : '')
+ . ((isset($enc['href']) && $enc['href']) ? 'href="' . $enc['href'] . '" ' : '')
+ . ((isset($enc['length']) && $enc['length']) ? 'length="' . $enc['length'] . '" ' : '')
+ . ((isset($enc['type']) && $enc['type']) ? 'type="' . $enc['type'] . '" ' : '')
. ' />' . "\r\n";
}
}