fix for bug #944311: Calendar: Error on user-defined fields

This commit is contained in:
Ralf Becker 2004-05-03 10:39:42 +00:00
parent 866152c11a
commit 273f6b0a2f

View File

@ -1193,7 +1193,7 @@
);
foreach(array('order','sort') as $name)
{
if (isset($GLOBALS[$where][$name]) && !preg_match($pregs[$name],$GLOBALS[$where][$name]))
if (isset($GLOBALS[$where][$name]) && !is_array($GLOBALS[$where][$name]) && !preg_match($pregs[$name],$GLOBALS[$where][$name]))
{
$GLOBALS[$where][$name] = '';
}