0) { echo $vars["value"]; } if (!empty($vars["value"]) && !(substr_count($vars["value"], "[") > 0)) { if (!is_array($vars["value"])) { $vars["value"] = array($vars['value']); } $result = ""; foreach ($vars['value'] as $elem) { if(!empty($result)) { $result .= ", "; } $result .= strtolower(getRoleNameFromID($elem)); } echo $result; } ?>