X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FPhoto.php;h=5b6e6d846c700d9068cfd406c9453d4d353b1ee4;hb=1b82df60dbfe0a78d728e440042ca980cd3d9578;hp=74d4c746d6f89eefbd05f4326f95d18be8e03d99;hpb=9ecb9842858541db669e6ee61627e8526bf4c719;p=friendica.git 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)