From 352b97d71abefc950e8eadcac95a7bc233bdf587 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Fri, 27 Oct 2023 17:17:48 +0200 Subject: [PATCH] Fix minore --- modules/giacenze_sedi/controller_before.php | 5 +---- modules/impianti/plugins/my_impianti.interventi.php | 8 ++++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/modules/giacenze_sedi/controller_before.php b/modules/giacenze_sedi/controller_before.php index a4fdeb7a9..4351109eb 100644 --- a/modules/giacenze_sedi/controller_before.php +++ b/modules/giacenze_sedi/controller_before.php @@ -33,9 +33,6 @@ echo ' '; diff --git a/modules/impianti/plugins/my_impianti.interventi.php b/modules/impianti/plugins/my_impianti.interventi.php index bb96a60e1..29464b3e4 100644 --- a/modules/impianti/plugins/my_impianti.interventi.php +++ b/modules/impianti/plugins/my_impianti.interventi.php @@ -130,7 +130,7 @@ echo ' '.tr('Matricola').' '.tr('Nome').' - '.tr('Data').' + '.tr('Data').' '.tr('Descrizione').' '.tr("Componenti soggetti all'intervento").' Checklist @@ -147,9 +147,9 @@ echo ' if (sizeof($checks)) { $class = ''; $icon = 'plus'; - $checks_not_verified = $checks->where('checked_at', null)->first(); - $type = sizeof($checks_not_verified) ? 'warning' : 'success'; - $icon2 = sizeof($checks_not_verified) ? 'clock-o' : 'check'; + $checks_not_verified = $checks->where('checked_at', null)->count(); + $type = $checks_not_verified ? 'warning' : 'success'; + $icon2 = $checks_not_verified ? 'clock-o' : 'check'; } echo '