From: Mikael Nordfeldth Date: Mon, 21 Mar 2016 01:56:47 +0000 (+0100) Subject: Issue #166 - we test exif data below, no need for error output X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cd24f7d30a2e2190d2a0e6ae5e33ee6e67489249;p=quix0rs-gnu-social.git Issue #166 - we test exif data below, no need for error output --- diff --git a/lib/imagefile.php b/lib/imagefile.php index c707208af6..a328df9852 100644 --- a/lib/imagefile.php +++ b/lib/imagefile.php @@ -95,7 +95,7 @@ class ImageFile if ($this->type == IMAGETYPE_JPEG && function_exists('exif_read_data')) { // Orientation value to rotate thumbnails properly - $exif = exif_read_data($this->filepath); + $exif = @exif_read_data($this->filepath); if (is_array($exif) && isset($exif['Orientation'])) { switch ((int)$exif['Orientation']) { case 1: // top is top