bug 2810: use filename+date_creation to find duplicates and not only filename.

When using several camera, you quickly have the same filenames with totally
different photos.


git-svn-id: http://piwigo.org/svn/trunk@29237 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall 2014-08-21 12:50:50 +00:00
parent 3626fe99a8
commit b1c6c56249

View file

@ -295,7 +295,7 @@ SELECT
$query = '
SELECT file
FROM '.IMAGES_TABLE.'
GROUP BY file
GROUP BY file, date_creation
HAVING COUNT(*) > 1
;';
$duplicate_files = query2array($query, null, 'file');