forked from extern/egroupware
php3-compatibility fix to execmethod's partscount
This commit is contained in:
parent
fefe347b33
commit
5d34135559
@ -106,7 +106,7 @@
|
||||
function ExecMethod($method, $functionparams = '_UNDEF_', $loglevel = 3, $classparams = '_UNDEF_')
|
||||
{
|
||||
/* Need to make sure this is working against a single dimensional object */
|
||||
$partscount = substr_count($method, '.');
|
||||
$partscount = count(explode('.',$method)) - 1;
|
||||
if ($partscount == 2)
|
||||
{
|
||||
list($appname,$classname,$functionname) = explode(".", $method);
|
||||
@ -159,7 +159,8 @@
|
||||
}
|
||||
}
|
||||
unset($GLOBALS['methodparts']);
|
||||
eval ('$isobject = is_object('.$parentobject.'->'.$classname.');');
|
||||
$code = '$isobject = is_object('.$parentobject.'->'.$classname.');';
|
||||
eval ($code);
|
||||
if (!$isobject)
|
||||
{
|
||||
if ($classparams != '_UNDEF_' && ($classparams || $classparams != 'True'))
|
||||
|
Loading…
Reference in New Issue
Block a user