aboutsummaryrefslogtreecommitdiffstats
path: root/admin/element_set_global.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/element_set_global.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/admin/element_set_global.php b/admin/element_set_global.php
index 79e78e8a2..2b7b728ac 100644
--- a/admin/element_set_global.php
+++ b/admin/element_set_global.php
@@ -474,13 +474,11 @@ SELECT id,path,tn_ext,file,filesize,level
FROM '.IMAGES_TABLE.'
WHERE id IN ('.implode(',', $page['cat_elements_id']).')
'.$conf['order_by'].'
- LIMIT '.$page['start'].' OFFSET '.$page['nb_images'].'
+ LIMIT '.$page['nb_images'].' OFFSET '.$page['start'].'
;';
- //echo '<pre>'.$query.'</pre>';
$result = pwg_query($query);
// template thumbnail initialization
-
while ($row = pwg_db_fetch_assoc($result))
{
$src = get_thumbnail_url($row);