fix for [ 983949 ] Syntax error in phpgwapi/templates/idsociety/head.inc.php

This commit is contained in:
Ralf Becker 2004-07-02 17:22:47 +00:00
parent dd32cbf53b
commit 4ae1356b53

View File

@ -161,7 +161,7 @@ class html
if (!is_array($key)) if (!is_array($key))
{ {
// explode on ',' only if multiple values expected and the key contains just numbers and commas // 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) foreach($arr as $k => $text)
{ {