Add check for EXIF data existence in Object/Image

- Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-467121955
This commit is contained in:
Hypolite Petovan 2019-03-08 22:09:41 -05:00
parent d6a607558b
commit 5f2a66e66c

View File

@ -447,7 +447,7 @@ class Image
return; return;
} }
$ort = $exif['IFD0']['Orientation']; $ort = isset($exif['IFD0']['Orientation']) ? $exif['IFD0']['Orientation'] : 1;
switch ($ort) { switch ($ort) {
case 1: // nothing case 1: // nothing