batch manager prefilter all does not make a sql query if there is also another filter
git-svn-id: http://piwigo.org/svn/trunk@28318 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
8c5064a330
commit
5e1cf61f20
1 changed files with 5 additions and 3 deletions
|
|
@ -289,13 +289,15 @@ SELECT id
|
|||
break;
|
||||
|
||||
case 'all_photos':
|
||||
$query = '
|
||||
if ( count($_SESSION['bulk_manager_filter']) == 1 )
|
||||
{// make the query only if this is the only filter
|
||||
$query = '
|
||||
SELECT id
|
||||
FROM '.IMAGES_TABLE.'
|
||||
'.$conf['order_by'];
|
||||
|
||||
$filter_sets[] = array_from_query($query, 'id');
|
||||
|
||||
$filter_sets[] = array_from_query($query, 'id');
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue