sforkowany z mirror/friendica
Add check for EXIF data existence in Object/Image
- Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-4671219552022.09-rc
rodzic
d6a607558b
commit
5f2a66e66c
|
@ -447,7 +447,7 @@ class Image
|
|||
return;
|
||||
}
|
||||
|
||||
$ort = $exif['IFD0']['Orientation'];
|
||||
$ort = isset($exif['IFD0']['Orientation']) ? $exif['IFD0']['Orientation'] : 1;
|
||||
|
||||
switch ($ort) {
|
||||
case 1: // nothing
|
||||
|
|
Ładowanie…
Reference in New Issue