diff --git a/lib/front/front.class.php b/lib/front/front.class.php index c5d80bc0ab..ea460cadd0 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -115,7 +115,7 @@ class html /* The begin. */ $id = $name; - if($pos = strpos($name, '[')) $id = substr($name, 0, $pos); + if(strpos($name, '[') !== false) $id = trim(str_replace(']', '', str_replace('[', '', $name))); $string = "