Skip to content

Commit

Permalink
bug 3134: hide warnings on exif_read_data to avoid breaking HTML5 upload
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@29392 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Sep 3, 2014
1 parent ab00c52 commit 2125efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/include/image.class.php
Expand Up @@ -241,7 +241,7 @@ static function get_rotation_angle($source_filepath)

$rotation = 0;

$exif = exif_read_data($source_filepath);
$exif = @exif_read_data($source_filepath);

if (isset($exif['Orientation']) and preg_match('/^\s*(\d)/', $exif['Orientation'], $matches))
{
Expand Down

0 comments on commit 2125efc

Please sign in to comment.