diff --git a/update/2_4_9.php b/update/2_4_9.php index eb4db03ba..ba3d8a60b 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 OR sconto_globale != NULL'); foreach ($interventi as $intervento) { $costi = get_costi_intervento($intervento['id']); $sconto_globale = $costi['sconto_globale'];