From: Mikael Nordfeldth Date: Mon, 18 Apr 2016 13:04:03 +0000 (+0200) Subject: strict type comparison X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=107f612384a0a17897bc4b1cda3f521fc4e29324;p=quix0rs-gnu-social.git strict type comparison --- 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'])) {