From 2bccd339a61f55060cb88c33006c708f1c5aab98 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 29 Jun 2010 00:18:40 +0000 Subject: bug 1742 fixed: if the EXIF functions are not available: 1) display a warning (but not an error) 2) avoid to try to read EXIF data git-svn-id: http://piwigo.org/svn/branches/2.1@6621 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_upload.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'admin/include/functions_upload.inc.php') diff --git a/admin/include/functions_upload.inc.php b/admin/include/functions_upload.inc.php index a52142d0c..d1aed33ca 100644 --- a/admin/include/functions_upload.inc.php +++ b/admin/include/functions_upload.inc.php @@ -141,6 +141,10 @@ function add_uploaded_file($source_filepath, $original_filename=null, $categorie } // update metadata from the uploaded file (exif/iptc) + if ($conf['use_exif'] and !function_exists('read_exif_data')) + { + $conf['use_exif'] = false; + } update_metadata(array($image_id=>$file_path)); invalidate_user_cache(); -- cgit v1.2.3