patch by email that fixes a "PHP Fatal error: Call to a member function getEnclosure() on a non-object" error
This commit is contained in:
parent
158ee6ec67
commit
f87660d36d
|
@ -494,6 +494,7 @@ class QvitterPlugin extends Plugin {
|
|||
$attachment_url_to_id = array();
|
||||
if (!empty($attachments)) {
|
||||
foreach ($attachments as $attachment) {
|
||||
if(is_object($attachment)) {
|
||||
try {
|
||||
$enclosure_o = $attachment->getEnclosure();
|
||||
$thumb = $attachment->getThumbnail();
|
||||
|
@ -507,6 +508,7 @@ class QvitterPlugin extends Plugin {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// add thumbs to $twitter_status
|
||||
|
|
Loading…
Reference in New Issue
Block a user