diff options
Diffstat (limited to 'include/network.php')
-rw-r--r-- | include/network.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php index 451ce12a1..d571ec2ce 100644 --- a/include/network.php +++ b/include/network.php @@ -714,6 +714,10 @@ function scale_external_images($s, $include_link = true, $scale_replace = false) if($i['success']) { $ph = photo_factory($i['body'], $type); + + if(! is_object($ph)) + continue; + if($ph->is_valid()) { $orig_width = $ph->getWidth(); $orig_height = $ph->getHeight(); |