From 69920fb7173887f83052e682d5273b16e9c34c49 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 19 Aug 2015 19:17:17 -0700 Subject: fix photo location --- include/photo/photo_driver.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/photo') diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php index 426eb6aac..553e77ed1 100644 --- a/include/photo/photo_driver.php +++ b/include/photo/photo_driver.php @@ -238,10 +238,12 @@ abstract class photo_driver { if(! $this->is_valid()) return FALSE; + if((! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg')) return; $exif = @exif_read_data($filename,null,true); + if($exif) { $ort = $exif['IFD0']['Orientation']; @@ -281,7 +283,6 @@ abstract class photo_driver { break; } - // logger('exif: ' . print_r($exif,true)); return $exif; } -- cgit v1.2.3