Skip to content

Commit

Permalink
Supress errors in fixOrientation()
Browse files Browse the repository at this point in the history
  • Loading branch information
garygreen committed Jun 28, 2016
1 parent a89da22 commit f4e70d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Adapter/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ public function fixOrientation()
throw new \RuntimeException('You need to EXIF PHP Extension to use this function');
}

$exif = exif_read_data($this->source->getInfos());
$exif = @exif_read_data($this->source->getInfos());

if (!array_key_exists('Orientation', $exif)) {
if ($exif === false || !array_key_exists('Orientation', $exif)) {
return $this;
}

Expand Down

0 comments on commit f4e70d8

Please sign in to comment.