From 107f612384a0a17897bc4b1cda3f521fc4e29324 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Mon, 18 Apr 2016 15:04:03 +0200 Subject: [PATCH] strict type comparison --- lib/imagefile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imagefile.php b/lib/imagefile.php index a328df9852..85fc597126 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -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'])) {