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:
Mikael Nordfeldth
2014-06-02 01:26:23 +02:00
parent d596513e39
commit d6f52f5939
5 changed files with 26 additions and 21 deletions

View File

@@ -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){