Fix widget

This commit is contained in:
Pek5892 2024-04-23 15:29:50 +02:00
parent 672c9ce34e
commit ed5d524fff
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ if (!empty($rs)) {
$data_accettazione = ($preventivo->data_accettazione != '0000-00-00') ? Translator::dateToLocale($preventivo->data_accettazione) : '';
$data_conclusione = ($preventivo->data_conclusione != '0000-00-00') ? Translator::dateToLocale($preventivo->data_conclusione) : '';
if (strtotime($preventivo->data_conclusione) < strtotime(date('Y-m-d')) && $data_conclusione != '') {
if ($data_conclusione != '' && strtotime($preventivo->data_conclusione) < strtotime(date('Y-m-d'))) {
$attr = ' class="danger"';
} else {
$attr = '';