mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user