mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 04:09:56 +03:00
[search] bug fixed when a filter intersection is empty
This commit is contained in:
parent
542910cb6d
commit
3bb697c017
1 changed files with 5 additions and 0 deletions
|
@ -679,6 +679,11 @@ function get_items_for_filter($filter_name)
|
|||
$debug_msg.= ', time = '.get_elapsed_time($function_start, get_moment());
|
||||
$logger->debug($debug_msg);
|
||||
|
||||
if (empty($other_filters_items))
|
||||
{
|
||||
$other_filters_items = array(-1);
|
||||
}
|
||||
|
||||
@$page['search_details'][__FUNCTION__][$cache_key] = $other_filters_items;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue