From b1c6c5624932e6204cf82ae9b5336167552f3fa5 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 21 Aug 2014 12:50:50 +0000 Subject: 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 --- admin/batch_manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin') diff --git a/admin/batch_manager.php b/admin/batch_manager.php index a89ef615b..c34ee7406 100644 --- a/admin/batch_manager.php +++ b/admin/batch_manager.php @@ -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'); -- cgit v1.2.3