diff --git a/modules/interventi/modutil.php b/modules/interventi/modutil.php index f0a1b6d2c..338e18941 100755 --- a/modules/interventi/modutil.php +++ b/modules/interventi/modutil.php @@ -343,7 +343,7 @@ function verifica_numero_intervento(Intervento $intervento) // Recupero maschera per questo segmento $maschera = setting('Formato codice attività'); - if ((strpos($maschera, 'YYYY') !== false) or (strpos($maschera, 'yy') !== false)) { + if ((strpos($maschera, 'YYYY') == false) or (strpos($maschera, 'yy') == false)) { $ultimo = Generator::getPreviousFrom($maschera, 'in_interventi', 'codice', [ 'DATE(data_richiesta) < '.prepare($data->format('Y-m-d')), 'YEAR(data_richiesta) = '.prepare($data->format('Y')),