]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
strict type comparison
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 18 Apr 2016 13:04:03 +0000 (15:04 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 18 Apr 2016 13:04:03 +0000 (15:04 +0200)
lib/imagefile.php

index a328df9852bd965f33e0d0107021505f61c56281..85fc59712690c7f6c1554d519294eb10729ed050 100644 (file)
@@ -93,7 +93,7 @@ class ImageFile
         $this->type     = $info[2];
         $this->mimetype = $info['mime'];
 
-        if ($this->type == IMAGETYPE_JPEG && function_exists('exif_read_data')) {
+        if ($this->type === IMAGETYPE_JPEG && function_exists('exif_read_data')) {
             // Orientation value to rotate thumbnails properly
             $exif = @exif_read_data($this->filepath);
             if (is_array($exif) && isset($exif['Orientation'])) {