From 5f2a66e66c44214a0f5c8727875f0430736234af Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 8 Mar 2019 22:09:41 -0500 Subject: [PATCH] Add check for EXIF data existence in Object/Image - Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-467121955 --- src/Object/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Object/Image.php b/src/Object/Image.php index 45c8bedea..66be78ad4 100644 --- a/src/Object/Image.php +++ b/src/Object/Image.php @@ -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