[search] bug fixed when a filter intersection is empty

This commit is contained in:
plegall 2024-08-20 15:55:00 +02:00
parent 542910cb6d
commit 3bb697c017

View file

@ -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;
}