diff options
Diffstat (limited to '')
-rw-r--r-- | admin/batch_manager.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php index 89a1b8bc1..e11c8213e 100644 --- a/admin/batch_manager.php +++ b/admin/batch_manager.php @@ -177,6 +177,21 @@ SELECT id ); } + if ('with no album' == $_SESSION['bulk_manager_filter']['prefilter']) + { + $query = ' +SELECT + id + FROM '.IMAGES_TABLE.' + LEFT JOIN '.IMAGE_CATEGORY_TABLE.' ON id = image_id + WHERE category_id is null +;'; + array_push( + $filter_sets, + array_from_query($query, 'id') + ); + } + if ('duplicates' == $_SESSION['bulk_manager_filter']['prefilter']) { // we could use the group_concat MySQL function to retrieve the list of |