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=b1e172a3d9bdeb8f9b7a5559d45b843245a1a3b0;p=quix0rs-gnu-social.git stupid mistake... let's not talk about this. --- diff --git a/lib/apiaction.php b/lib/apiaction.php index f7b4ef473e..9bfca3b66e 100644 --- a/lib/apiaction.php +++ b/lib/apiaction.php @@ -290,7 +290,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;