aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to 'admin')
-rw-r--r--admin/batch_manager.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php
index 19dfea311..20508d576 100644
--- a/admin/batch_manager.php
+++ b/admin/batch_manager.php
@@ -257,12 +257,9 @@ SELECT id
$query = '
SELECT id
FROM '.IMAGES_TABLE.'
-;';
+ '.$conf['order_by'];
- array_push(
- $filter_sets,
- array_from_query($query, 'id')
- );
+ $filter_sets[] = array_from_query($query, 'id');
}
$filter_sets = trigger_event('perform_batch_manager_prefilters', $filter_sets, $_SESSION['bulk_manager_filter']['prefilter']);
@@ -304,11 +301,9 @@ if (isset($_SESSION['bulk_manager_filter']['level']))
SELECT id
FROM '.IMAGES_TABLE.'
WHERE level '.$operator.' '.$_SESSION['bulk_manager_filter']['level'].'
-;';
- array_push(
- $filter_sets,
- array_from_query($query, 'id')
- );
+ '.$conf['order_by'];
+
+ $filter_sets[] = array_from_query($query, 'id');
}
if (!empty($_SESSION['bulk_manager_filter']['tags']))