diff --git a/ecrire/public/balises.php b/ecrire/public/balises.php index dae7c32b1849c2318689a47ebdcc9062fdf7235f..ccd97a93f48ed386f4e19aa4ffcfc21705ab2c34 100644 --- a/ecrire/public/balises.php +++ b/ecrire/public/balises.php @@ -1356,9 +1356,8 @@ function balise_FOREACH_dist($p) { if($_code == "''" OR $_code == NULL) $_code = "'foreach'"; $_tableau = str_replace("'", "", strtoupper($_tableau)); - $balise = function_exists($f ='balise_'.$_tableau) ? $f : - function_exists($g = $f.'_dist') ? $g : ''; - + $f ='balise_'.$_tableau; + $balise = function_exists($g = $f.'_dist') ? $g : (function_exists($f) ? $f : ''); if($balise) { $p->param = @array_shift(@array_shift($p->param));