From 9c33f26ab43c72e521e9cec43142d5b236b9738f Mon Sep 17 00:00:00 2001 From: seek3r Date: Mon, 6 Aug 2001 07:32:24 +0000 Subject: [PATCH] added support for strange _UNDEF_ and True --- phpgwapi/inc/functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 9b11ac1e15..32078c4d5b 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -106,7 +106,7 @@ function ExecObject($object, $functionparams = '_UNDEF_', $loglevel = 3, $classp list($appname,$classname,$functionname) = explode(".", $object); if (!is_object($GLOBALS[$classname])) { - if ($classparams != '_UNDEF_') + if ($classparams != '_UNDEF_' && $classparams != True) { $GLOBALS[$classname] = CreateObject($appname.'.'.$classname, $classparams); } @@ -116,7 +116,7 @@ function ExecObject($object, $functionparams = '_UNDEF_', $loglevel = 3, $classp } } - if ($functionparams != '_UNDEF_') + if ($functionparams != '_UNDEF_' && $functionparams != True) { return $GLOBALS[$classname]->$functionname($functionparams); }