aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-07-14 22:01:30 +0000
committerplegall <plg@piwigo.org>2011-07-14 22:01:30 +0000
commit386a93d8728072a49eefc50a3c035c78ce4b0680 (patch)
treebc60c415dd7d0bbfa01d44f573163ff773709f0e
parentb5e2ecd0dbdc83350a1384c9d5ec39e7d488dc73 (diff)
bug 2356 fixed: if the EXIF date can't be parsed, we don't use it to fill the photo date
git-svn-id: http://piwigo.org/svn/branches/2.2@11747 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/include/functions_metadata.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/include/functions_metadata.php b/admin/include/functions_metadata.php
index 1bbd87e8f..7f9b516b0 100644
--- a/admin/include/functions_metadata.php
+++ b/admin/include/functions_metadata.php
@@ -97,6 +97,11 @@ function get_sync_exif_data($file)
{
$exif[$pwg_key] = $matches[1].'-'.$matches[2].'-'.$matches[3];
}
+ else
+ {
+ unset($exif[$pwg_key]);
+ continue;
+ }
}
$exif[$pwg_key] = addslashes($exif[$pwg_key]);
}