File::processNew can return -1 which was not true for empty()
Also, File->getEnclosure() now throws exception if not enough metadata.
This commit is contained in:
@@ -651,9 +651,10 @@ class Facebookclient
|
||||
|
||||
foreach($attachments as $attachment)
|
||||
{
|
||||
if($enclosure = $attachment->getEnclosure()){
|
||||
try {
|
||||
$enclosure = $attachment->getEnclosure();
|
||||
$fbmedia = $this->getFacebookMedia($enclosure);
|
||||
}else{
|
||||
} catch (ServerException $e) {
|
||||
$fbmedia = $this->getFacebookMedia($attachment);
|
||||
}
|
||||
if($fbmedia){
|
||||
|
Reference in New Issue
Block a user