diff options
author | Mario <mario@mariovavti.com> | 2022-11-24 09:52:50 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-11-24 09:52:50 +0000 |
commit | aeda31fda7ac6e788eb31b455970b349a1cc0fa7 (patch) | |
tree | 6e8da7644c967a09a339441709e262bd9ba663f5 | |
parent | 5248aa3065b59588e1486346e066dbf32e2e7156 (diff) | |
download | volse-hubzilla-aeda31fda7ac6e788eb31b455970b349a1cc0fa7.tar.gz volse-hubzilla-aeda31fda7ac6e788eb31b455970b349a1cc0fa7.tar.bz2 volse-hubzilla-aeda31fda7ac6e788eb31b455970b349a1cc0fa7.zip |
fix warnings
-rw-r--r-- | include/feedutils.php | 6 |
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"; } } |