summaryrefslogtreecommitdiff
path: root/lib/twitterapi.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-07-13 14:32:56 -0400
committerCraig Andrews <candrews@integralblue.com>2009-07-13 14:32:56 -0400
commit678f054bfe51e74e26a992ae7de84b73ea95baee (patch)
treebf1ff296d3d36e2d34e25eeee92f5f0094e3ad24 /lib/twitterapi.php
parent858e3e765f995729542821b04c07876f0d360245 (diff)
parent38784141d108a96cc173167e16a1c79d9098722a (diff)
Merge commit 'tobyinks/master' into 0.8.x
Diffstat (limited to 'lib/twitterapi.php')
-rw-r--r--lib/twitterapi.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/twitterapi.php b/lib/twitterapi.php
index 4f3a5c0b6..ce188e00d 100644
--- a/lib/twitterapi.php
+++ b/lib/twitterapi.php
@@ -218,11 +218,13 @@ class TwitterapiAction extends Action
if($attachments){
$entry['enclosures']=array();
foreach($attachments as $attachment){
- $enclosure=array();
- $enclosure['url']=$attachment->url;
- $enclosure['mimetype']=$attachment->mimetype;
- $enclosure['size']=$attachment->size;
- $entry['enclosures'][]=$enclosure;
+ if (isset($attachment->filename)) {
+ $enclosure=array();
+ $enclosure['url']=$attachment->url;
+ $enclosure['mimetype']=$attachment->mimetype;
+ $enclosure['size']=$attachment->size;
+ $entry['enclosures'][]=$enclosure;
+ }
}
}