aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-04 20:07:08 -0700
committerzotlabs <mike@macgirvin.com>2017-06-04 20:07:08 -0700
commit2fea5ff8894c3f1f274a3ce67b2c023e39fdab6c (patch)
treed004a77cc82dcfad4eb3a3fbfd8e3d05ee63cb3f /include
parenta94a42d60959bb3ff2dc1edcffa7237ac31bcc67 (diff)
downloadvolse-hubzilla-2fea5ff8894c3f1f274a3ce67b2c023e39fdab6c.tar.gz
volse-hubzilla-2fea5ff8894c3f1f274a3ce67b2c023e39fdab6c.tar.bz2
volse-hubzilla-2fea5ff8894c3f1f274a3ce67b2c023e39fdab6c.zip
always add a length to ostatus compat enclosures - even if unknown (0)
Diffstat (limited to 'include')
-rw-r--r--include/feedutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/feedutils.php b/include/feedutils.php
index b658f6b0f..70222c124 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";
}