diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index bf302284d4..32176bff17 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -161,7 +161,7 @@ class html if (!is_array($key)) { // explode on ',' only if multiple values expected and the key contains just numbers and commas - $key = $multiple && ('/^[,0-9]+$/',$key) ? explode(',',$key) : array($key); + $key = $multiple && preg_match('/^[,0-9]+$/',$key) ? explode(',',$key) : array($key); } foreach($arr as $k => $text) {