getRispostaElaborazioneAlgoritmoAnomalia(); foreach($gara->getLotti() AS $lotto) { $gara->setLotto($lotto["codice"]); $algo = $gara->getAlgoritmoAnomalia(true); if (!empty($algo)) { break; } } $gara->lotto = null; if (!empty($algo) && !empty($risposta) && $risposta == "S") { $show = true; } } ?>