aboutsummaryrefslogtreecommitdiffstats
path: root/admin/element_set_global.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/element_set_global.php')
-rw-r--r--admin/element_set_global.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/admin/element_set_global.php b/admin/element_set_global.php
index 3824b98eb..26eb57ca6 100644
--- a/admin/element_set_global.php
+++ b/admin/element_set_global.php
@@ -451,7 +451,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'].'
;';