diff --git a/update/2_4_9.php b/update/2_4_9.php index eb4db03ba..5a34bc964 100644 --- a/update/2_4_9.php +++ b/update/2_4_9.php @@ -7,7 +7,7 @@ include_once DOCROOT.'/modules/interventi/modutil.php'; $id_iva = setting('Iva predefinita'); $iva = $dbo->fetchOne('SELECT * FROM co_iva WHERE id='.prepare($id_iva)); -$interventi = $dbo->fetchArray('SELECT * FROM in_interventi WHERE sconto_globale != 0'); +$interventi = $dbo->fetchArray('SELECT * FROM in_interventi WHERE sconto_globale != 0 AND sconto_globale != NULL'); foreach ($interventi as $intervento) { $costi = get_costi_intervento($intervento['id']); $sconto_globale = $costi['sconto_globale'];