From: Craig Andrews Date: Fri, 22 Jan 2010 15:40:21 +0000 (-0500) Subject: stupid mistake... let's not talk about this. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7be5e7e524bbe3a789b2f352f14a011fc1dc8ba2;p=quix0rs-gnu-social.git stupid mistake... let's not talk about this. --- diff --git a/lib/api.php b/lib/api.php index b4803fe62d..825262b4c1 100644 --- a/lib/api.php +++ b/lib/api.php @@ -289,7 +289,7 @@ class ApiAction extends Action foreach ($attachments as $attachment) { $enclosure_o=$attachment->getEnclosure(); - if ($attachment_enclosure) { + if ($enclosure_o) { $enclosure = array(); $enclosure['url'] = $enclosure_o->url; $enclosure['mimetype'] = $enclosure_o->mimetype;