]> git.mxchange.org Git - friendica.git/commitdiff
Add check for EXIF data existence in Object/Image
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Mar 2019 03:09:41 +0000 (22:09 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Mar 2019 03:09:41 +0000 (22:09 -0500)
- Addresses https://github.com/friendica/friendica/issues/6338#issuecomment-467121955

src/Object/Image.php

index 45c8bedeaf58397abe15b1b7684a009156f63cad..66be78ad469a02e4aef3a1c6e31aff3667180cf4 100644 (file)
@@ -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