- 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
This commit is contained in:
plegall 2005-02-13 12:49:52 +00:00
parent abfbb7f706
commit 11cf1e01f7
2 changed files with 10 additions and 0 deletions

View file

@ -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']))

View file

@ -803,6 +803,11 @@ if ($metadata_showable and isset($_GET['show_metadata']))
$template->assign_block_vars('metadata', array());
if ($conf['show_exif'])
{
if (!function_exists('read_exif_data'))
{
die('Exif extension not available, admin should disable exif display');
}
if ($exif = @read_exif_data($picture['current']['src']))
{
$template->assign_block_vars(