]> 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>
Wed, 3 Mar 2010 17:52:24 +0000 (09:52 -0800)
lib/apiaction.php

index f7b4ef473e3c08a2689d1fae3d317cc1473d222f..9bfca3b66e49b643c403714c02744dd4ca0363fd 100644 (file)
@@ -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;