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
This commit is contained in:
plegall
2011-07-14 22:01:30 +00:00
parent b5e2ecd0db
commit 386a93d872
+5
View File
@@ -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]);
}