aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-04 20:07:08 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-07 09:36:13 +0200
commitcdfd42053d4920bc2c7c508d512ad3c7033d8095 (patch)
treeacfe28b74830977e9c814f177092c4f0b9749c1d
parent36d40866738ca81a31002251d4ca63f1087d8054 (diff)
downloadvolse-hubzilla-cdfd42053d4920bc2c7c508d512ad3c7033d8095.tar.gz
volse-hubzilla-cdfd42053d4920bc2c7c508d512ad3c7033d8095.tar.bz2
volse-hubzilla-cdfd42053d4920bc2c7c508d512ad3c7033d8095.zip
always add a length to ostatus compat enclosures - even if unknown (0)
-rw-r--r--include/feedutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index 1563bdb41..5f86ad5a4 100644
--- a/include/feedutils.php
+++ b/include/feedutils.php
@@ -1441,7 +1441,7 @@ function atom_entry($item, $type, $author, $owner, $comment = false, $cid = 0, $
foreach($compat_photos as $enc) {
$o .= '<link rel="enclosure" '
. (($enc['href']) ? 'href="' . $enc['href'] . '" ' : '')
- . (($enc['length']) ? 'length="' . $enc['length'] . '" ' : '')
+ . ((array_key_exists('length',$enc)) ? 'length="' . $enc['length'] . '" ' : '')
. (($enc['type']) ? 'type="' . $enc['type'] . '" ' : '')
. ' />' . "\r\n";
}