diff options
author | plegall <plg@piwigo.org> | 2010-11-01 21:06:30 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-11-01 21:06:30 +0000 |
commit | 8f0035ae66bcdff38b07191278500a1e889c6bbf (patch) | |
tree | 58c471222bb3a4fc78859f38db71b2ce6bc9aa96 /admin/element_set_global.php | |
parent | a02463646f8f0605ac98e8683bd67ac5a059b362 (diff) |
bug 1988 fixed: avoid duplicate thumbnails for photos linked to several
categories when managing all photos of one of these categories.
git-svn-id: http://piwigo.org/svn/branches/2.1@7555 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/element_set_global.php')
-rw-r--r-- | admin/element_set_global.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/admin/element_set_global.php b/admin/element_set_global.php index 8377bdd41..eefe08000 100644 --- a/admin/element_set_global.php +++ b/admin/element_set_global.php @@ -466,7 +466,15 @@ SELECT id,path,tn_ext,file,filesize,level } $query.= ' - WHERE id IN ('.implode(',', $page['cat_elements_id']).') + WHERE id IN ('.implode(',', $page['cat_elements_id']).')'; + + if (is_numeric($_GET['cat'])) + { + $query.= ' + AND category_id = '.$_GET['cat']; + } + + $query.= ' '.$conf['order_by'].' LIMIT '.$page['nb_images'].' OFFSET '.$page['start'].' ;'; |