]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Issue #166 - we test exif data below, no need for error output
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Mar 2016 01:56:47 +0000 (02:56 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Mar 2016 01:56:47 +0000 (02:56 +0100)
lib/imagefile.php

index c707208af6eef0c917ab28ee4acdc66c4718dd15..a328df9852bd965f33e0d0107021505f61c56281 100644 (file)
@@ -95,7 +95,7 @@ class ImageFile
 
         if ($this->type == IMAGETYPE_JPEG && function_exists('exif_read_data')) {
             // Orientation value to rotate thumbnails properly
-            $exif = exif_read_data($this->filepath);
+            $exif = @exif_read_data($this->filepath);
             if (is_array($exif) && isset($exif['Orientation'])) {
                 switch ((int)$exif['Orientation']) {
                 case 1: // top is top