strict type comparison

This commit is contained in:
Mikael Nordfeldth 2016-04-18 15:04:03 +02:00
parent 4645033b98
commit 107f612384
1 changed files with 1 additions and 1 deletions

View 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'])) {