From 94fabe3a2942ca93b436694f180f8eb2a72df918 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Jul 2012 06:28:02 -0700 Subject: upstream fixes and a lot of taxonomy stuff --- include/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/Photo.php') diff --git a/include/Photo.php b/include/Photo.php index 3af1691ee..ba4241a7b 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -143,7 +143,7 @@ class Photo { public function orient($filename) { // based off comment on http://php.net/manual/en/function.imagerotate.php - if(! function_exists('exif_read_data')) + if( (! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg') ) return; $exif = exif_read_data($filename); -- cgit v1.2.3