getDotazione(); if (!empty($dotazione)) { $status = "status-border-success"; $totale = 0; foreach($dotazione AS $fin) { $totale += $fin["importo"]; } if ($totale != $progetto->info["importo"]) { $status = "status-border-warning"; $alertManager->addWarningAlert(__('Dotazione finanziaria non corrispondente al totale del progetto'),$hrefComando); } } else { $status = "status-border-danger"; $msg = __("Nessuna dotazione inserita"); $alertManager->addDangerAlert($msg,$hrefComando); } } ?>