aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-08-21 12:50:50 +0000
committerplegall <plg@piwigo.org>2014-08-21 12:50:50 +0000
commitb1c6c5624932e6204cf82ae9b5336167552f3fa5 (patch)
tree70caca8d1ea95699db16dcc23f0f40fa5a316efc /admin
parent3626fe99a8dbec48aead6553b3ee2dd2932e61fb (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/batch_manager.php2
1 files changed, 1 insertions, 1 deletions
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');