aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_metadata.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-01-11 05:10:16 +0000
committerrvelices <rv-github@modusoptimus.com>2007-01-11 05:10:16 +0000
commit7397c8d4c23533e2e33caae273da83ada3970b23 (patch)
tree570f3cfbdb659899f26d957ffeceaf0615524c37 /include/functions_metadata.inc.php
parent2a9c48225dc8e065de71a9b077b1e935e10aa077 (diff)
- better code in filter.inc.php (remove unused code + filter is not reseted
when going to an unfiltered page) - removed unnecessary filtered pages from config_default (especially admin !!!) - removed flat recent category icon from irrelevant pages - mysterious code comment appeared in picture.php git-svn-id: http://piwigo.org/svn/trunk@1711 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_metadata.inc.php')
-rw-r--r--include/functions_metadata.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/functions_metadata.inc.php b/include/functions_metadata.inc.php
index 4a655c37c..aa162e14b 100644
--- a/include/functions_metadata.inc.php
+++ b/include/functions_metadata.inc.php
@@ -36,11 +36,11 @@ function get_iptc_data($filename, $map)
{
$result = array();
- // Read IPTC data
- $iptc = array();
-
$imginfo = array();
- getimagesize($filename, $imginfo);
+ if (false == @getimagesize($filename, $imginfo) )
+ {
+ return $result;
+ }
if (isset($imginfo['APP13']))
{