diff --git a/update/2_5_2.php b/update/2_5_2.php index 17f1c9705..f9ee5d5d6 100644 --- a/update/2_5_2.php +++ b/update/2_5_2.php @@ -4,7 +4,7 @@ include_once __DIR__.'/core.php'; use Modules\PrimaNota\Mastrino; -$mastrini = Mastrino::where('primanota', 1)->groupBy('idmastrino')->get(); +$mastrini = Mastrino::where('primanota', 1)->where('id_scadenza','!=', null)->groupBy('idmastrino')->get(); foreach ($mastrini as $mastrino) { $mastrino->aggiornaScadenzario(); }