From 4d322701de488c66916d15955099c3ed1ad061ab Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 30 Mar 2006 00:37:07 +0000 Subject: fix: image_order cookie path fixed for url rewriting improve: add function access_denied called when check_status or check_restrictions fail fix: french language correction fix: remove php warnings in clean_iptc_value split search functions into include/functions_search.inc.php git-svn-id: http://piwigo.org/svn/trunk@1113 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_metadata.inc.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include/functions_metadata.inc.php') diff --git a/include/functions_metadata.inc.php b/include/functions_metadata.inc.php index d03327f60..4a655c37c 100644 --- a/include/functions_metadata.inc.php +++ b/include/functions_metadata.inc.php @@ -5,7 +5,7 @@ // | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net | // +-----------------------------------------------------------------------+ // | branch : BSF (Best So Far) -// | file : $RCSfile$ +// | file : $Id$ // | last update : $Date$ // | last modifier : $Author$ // | revision : $Revision$ @@ -35,13 +35,13 @@ function get_iptc_data($filename, $map) { $result = array(); - + // Read IPTC data $iptc = array(); - + $imginfo = array(); getimagesize($filename, $imginfo); - + if (isset($imginfo['APP13'])) { $iptc = iptcparse($imginfo['APP13']); @@ -82,13 +82,13 @@ function get_iptc_data($filename, $map) function clean_iptc_value($value) { // strip leading zeros (weird Kodak Scanner software) - while ($value[0] == chr(0)) + while ( isset($value[0]) and $value[0] == chr(0)) { $value = substr($value, 1); } // remove binary nulls $value = str_replace(chr(0x00), ' ', $value); - + return $value; } @@ -107,7 +107,7 @@ function get_exif_data($filename, $map) { die('Exif extension not available, admin should disable exif use'); } - + // Read EXIF data if ($exif = @read_exif_data($filename)) { -- cgit v1.2.3