]> git.mxchange.org Git - friendica.git/commitdiff
exif_read_data may not be available and isn't a requirement - check and silently...
authorfriendica <info@friendica.com>
Tue, 19 Jun 2012 03:21:54 +0000 (20:21 -0700)
committerfriendica <info@friendica.com>
Tue, 19 Jun 2012 03:21:54 +0000 (20:21 -0700)
include/Photo.php

index 54db9278e4111bd3a8db4638231c9dedff15df08..3af1691ee7250880479de51ec3573fb5e2839a05 100644 (file)
@@ -143,6 +143,9 @@ class Photo {
        public function orient($filename) {
                // based off comment on http://php.net/manual/en/function.imagerotate.php
 
+               if(! function_exists('exif_read_data'))
+                       return;
+
                $exif = exif_read_data($filename);
                $ort = $exif['Orientation'];