aboutsummaryrefslogtreecommitdiffstats
path: root/include/feedutils.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-11-24 09:52:50 +0000
committerMario <mario@mariovavti.com>2022-11-24 09:52:50 +0000
commitaeda31fda7ac6e788eb31b455970b349a1cc0fa7 (patch)
tree6e8da7644c967a09a339441709e262bd9ba663f5 /include/feedutils.php
parent5248aa3065b59588e1486346e066dbf32e2e7156 (diff)
downloadvolse-hubzilla-aeda31fda7ac6e788eb31b455970b349a1cc0fa7.tar.gz
volse-hubzilla-aeda31fda7ac6e788eb31b455970b349a1cc0fa7.tar.bz2
volse-hubzilla-aeda31fda7ac6e788eb31b455970b349a1cc0fa7.zip
fix warnings
Diffstat (limited to 'include/feedutils.php')
-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";
}
}