diff --git a/include/Photo.php b/include/Photo.php index 74d4c746d6..5b6e6d846c 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -295,7 +295,11 @@ class Photo { if( (! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg') ) return; - $exif = exif_read_data($filename); + $exif = @exif_read_data($filename); + + if(! $exif) + return; + $ort = $exif['Orientation']; switch($ort)