From: Hypolite Petovan Date: Sat, 9 Mar 2019 03:09:41 +0000 (-0500) Subject: Add check for EXIF data existence in Object/Image X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5f2a66e66c44214a0f5c8727875f0430736234af;p=friendica.git Add check for EXIF data existence in Object/Image - Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-467121955 --- diff --git a/src/Object/Image.php b/src/Object/Image.php index 45c8bedeaf..66be78ad46 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