aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-01-31 22:40:58 +0000
committerplegall <plg@piwigo.org>2011-01-31 22:40:58 +0000
commitaae2301da94428c07d945fb34e29eceb882c19eb (patch)
tree969b4e37ed222788cc8e8cb2d66fd24516bcbd02 /admin/include
parent27203f1345099c7d6f5d12bd4b4d3ee32dab0d45 (diff)
bug 2164 fixed: disable automatic rotation if we can't read EXIF data
git-svn-id: http://piwigo.org/svn/trunk@9021 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/functions_upload.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php
index ad25f848c..c99c358f6 100644
--- a/admin/include/functions_upload.inc.php
+++ b/admin/include/functions_upload.inc.php
@@ -601,6 +601,11 @@ function get_rotation_angle($source_filepath)
return null;
}
+ if (!function_exists('exif_read_data'))
+ {
+ return null;
+ }
+
$rotation = null;
$exif = exif_read_data($source_filepath);