]> 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)
committerCraig Andrews <candrews@integralblue.com>
Fri, 22 Jan 2010 15:40:21 +0000 (10:40 -0500)
lib/api.php

index b4803fe62de5e0f3e02b3709d28fc6c94b4a6339..825262b4c18ea1bb8b99d846edc63b8428e2f313 100644 (file)
@@ -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;