Fix filtro per data attività

This commit is contained in:
Pek5892 2024-03-14 14:30:39 +01:00
parent ba90d10567
commit 286ad99d2a
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class Query
if ($anno != '' && $giorno != '' && $mese != '') {
if ($data != "'1970-01-01'") {
$search_filters[] = $search_query.' = '.$data.'';
$search_filters[] = 'date('.$search_query.') = '.$data.'';
}
} else {
$search_filters[] = ($search_query.' = '.prepare($value).' OR '.$search_query.' LIKE '.prepare('% '.$value).' OR '.$search_query.' LIKE '.prepare($value.' %').' OR '.$search_query.' LIKE '.prepare('% '.$value.' %'));