mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 00:39:19 +01:00
added support for strange _UNDEF_ and True
This commit is contained in:
parent
cd9cf4ef29
commit
9c33f26ab4
@ -106,7 +106,7 @@ function ExecObject($object, $functionparams = '_UNDEF_', $loglevel = 3, $classp
|
|||||||
list($appname,$classname,$functionname) = explode(".", $object);
|
list($appname,$classname,$functionname) = explode(".", $object);
|
||||||
if (!is_object($GLOBALS[$classname]))
|
if (!is_object($GLOBALS[$classname]))
|
||||||
{
|
{
|
||||||
if ($classparams != '_UNDEF_')
|
if ($classparams != '_UNDEF_' && $classparams != True)
|
||||||
{
|
{
|
||||||
$GLOBALS[$classname] = CreateObject($appname.'.'.$classname, $classparams);
|
$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);
|
return $GLOBALS[$classname]->$functionname($functionparams);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user