no need to call ancient CreateObject when class is autoloadable

This commit is contained in:
Ralf Becker 2016-04-01 12:15:10 +00:00
parent a7b6fb5baf
commit d7f38ce16e

View File

@ -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))