aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_metadata.inc.php
diff options
context:
space:
mode:
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']))
{