if (isset($this) && is_a($this,"anac") && isset($suggerimenti) && isset($key) && !empty($suggerimenti[$key])) { $moduli = self::moduliSuggerimenti(); $modals = []; $total = 0; foreach($suggerimenti[$key] AS $suggerimento) { if (!empty($suggerimento["data"])) { foreach($suggerimento["data"] AS $chiave => $valore) { $modals[$chiave][] = ["source" => $suggerimento["source"],"value"=>$valore]; } } } if (!empty($modals)) { foreach($modals AS $campo => $valori) { $currentTotal = $total; ?>
if ($currentTotal < $total) { ?>