getLotti(); $ok = 0; $totaleLotti = count($checkLotti); if (!empty($checkLotti)) { foreach($checkLotti AS $checkLotto) { $hrefLotto = $hrefComando . "&codice_lotto=" . $checkLotto["codice"]; if ($gara->setLotto($checkLotto["codice"])) { $invitati = $gara->countInvitati(); if (!empty($invitati)) { $status = "status-border-warning"; $ok++; } else { if ($gara->round["numero"] > 1 && $totaleLotti > 1) { $alertManager->addWarningAlert(__("Nessun invitato selezionato per il lotto") . ": #{$checkLotto["numero"]}",$hrefLotto); } else { $alertManager->addDangerAlert(__("Nessun invitato selezionato per il lotto") . ": #{$checkLotto["numero"]}",$hrefLotto); } } } else { $alertManager->addDangerAlert(__("Errore inizializzazione lotto") . ": #{$checkLotto["numero"]}",$hrefComando); break; } } if ($ok === $totaleLotti) { $status = "status-border-success"; } } } ?>