Skip to content

Commit

Permalink
Update listener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSheer committed Dec 2, 2021
1 parent e88821d commit 5de89da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event/listener.php
Expand Up @@ -57,7 +57,7 @@ public function upload_image_rotator($event)
if (function_exists('exif_imagetype') && ($filedata['extension'] == 'jpg' || $filedata['extension'] == 'jpeg'))
{
$exif = @exif_read_data($destination_file, 0, true);
if (isset($exif['THUMBNAIL']) && $exif['THUMBNAIL']['Orientation'] == 1)
if (isset($exif['THUMBNAIL']) && isset($exif['THUMBNAIL']['Orientation']) == 1)
{
$rotate = false;
$flip = false;
Expand Down

0 comments on commit 5de89da

Please sign in to comment.