mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-10 18:53:01 +02:00
fixes #2230 search filters, always display all date_posted presets
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user