From 11cf1e01f778ee8c07965d56412f767341158fbc Mon Sep 17 00:00:00 2001 From: plegall Date: Sun, 13 Feb 2005 12:49:52 +0000 Subject: - bug fixed : instead of showing a blank page when trying to use Exif tags read function, display a message telling the problem git-svn-id: http://piwigo.org/svn/trunk@738 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_metadata.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'admin') diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php index 8e2d27a16..ad45aca12 100644 --- a/admin/include/functions_metadata.php +++ b/admin/include/functions_metadata.php @@ -84,6 +84,11 @@ function update_metadata($files) if ($conf['use_exif']) { + if (!function_exists('read_exif_data')) + { + die('Exif extension not available, admin should disable exif use'); + } + if ($exif = @read_exif_data($file)) { if (isset($exif['DateTime'])) -- cgit v1.2.3