summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-01-22 10:40:21 -0500
committerCraig Andrews <candrews@integralblue.com>2010-01-22 10:40:21 -0500
commit7be5e7e524bbe3a789b2f352f14a011fc1dc8ba2 (patch)
tree30924951a88dbf0f978c4415fc0ea43c9ea14909 /lib
parent672126968f42ebda3cc444190c4364ea35144dad (diff)
stupid mistake... let's not talk about this.
Diffstat (limited to 'lib')
-rw-r--r--lib/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api.php b/lib/api.php
index b4803fe62..825262b4c 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;