fixes #2230 search filters, always display all date_posted presets

This commit is contained in:
plegall
2024-09-19 18:21:41 +02:00
parent 634711ca3a
commit 40947217ac
4 changed files with 10 additions and 11 deletions
+4 -7
View File
@@ -192,13 +192,10 @@ SELECT
$counters = array();
foreach (array_keys($label_for_threshold) as $threshold)
{
if (isset($date_posted['pre_counters'][$threshold]))
{
$counters[$threshold] = array(
'label' => $label_for_threshold[$threshold],
'counter' => $date_posted['pre_counters'][$threshold],
);
}
$counters[$threshold] = array(
'label' => $label_for_threshold[$threshold],
'counter' => $date_posted['pre_counters'][$threshold] ?? 0,
);
}
foreach (array_keys($date_posted['list_of_dates']) as $y)