]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
stupid mistake... let's not talk about this.
authorCraig Andrews <candrews@integralblue.com>
Fri, 22 Jan 2010 15:40:21 +0000 (10:40 -0500)
committerZach Copley <zach@status.net>
Tue, 2 Mar 2010 22:25:27 +0000 (14:25 -0800)
lib/apiaction.php

index f71432e0327a39595f7145e3176c193ecdf06c6e..eef0ba637d20a52ef38c5bfcb2c3b2d520c05cbd 100644 (file)
@@ -292,7 +292,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;