forked from extern/egroupware
no need to call ancient CreateObject when class is autoloadable
This commit is contained in:
parent
a7b6fb5baf
commit
d7f38ce16e
@ -1076,7 +1076,14 @@ function &ExecMethod2($acm)
|
||||
list(,$class,$method) = explode('.',$acm);
|
||||
if (!is_object($obj =& $GLOBALS[$class]))
|
||||
{
|
||||
$obj =& CreateObject($acm);
|
||||
if (class_exists($class))
|
||||
{
|
||||
$obj = new $class;
|
||||
}
|
||||
else
|
||||
{
|
||||
$obj = CreateObject($acm);
|
||||
}
|
||||
}
|
||||
|
||||
if (!method_exists($obj,$method))
|
||||
|
Loading…
Reference in New Issue
Block a user