mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-08 18:02:26 +01:00
feature 2091: Batch Manager, find all orphan photos
git-svn-id: http://piwigo.org/svn/trunk@8419 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
c716ed88b8
commit
4effe045ee
4 files changed
+18
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user