mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-31 19:19:43 +01:00
returning false and logging error in ExecMethod, not returning an error-message
This commit is contained in:
parent
0220a0b850
commit
6b7b6fac58
@ -965,8 +965,8 @@ function ExecMethod($method, $functionparam = '_UNDEF_', $loglevel = 3, $classpa
|
|||||||
|
|
||||||
if (!method_exists($GLOBALS[$classname],$functionname))
|
if (!method_exists($GLOBALS[$classname],$functionname))
|
||||||
{
|
{
|
||||||
echo "<p><b>".function_backtrace()."</b>: no methode '$functionname' in class '$classname'</p>\n";
|
error_log("ExecMethod('$method', ...) No methode '$functionname' in class '$classname'! ".function_backtrace());
|
||||||
return False;
|
return false;
|
||||||
}
|
}
|
||||||
$method = array($GLOBALS[$classname],$functionname);
|
$method = array($GLOBALS[$classname],$functionname);
|
||||||
}
|
}
|
||||||
@ -974,7 +974,8 @@ function ExecMethod($method, $functionparam = '_UNDEF_', $loglevel = 3, $classpa
|
|||||||
{
|
{
|
||||||
return $functionparam != '_UNDEF_' ? call_user_func($method,$functionparam) : call_user_func($method);
|
return $functionparam != '_UNDEF_' ? call_user_func($method,$functionparam) : call_user_func($method);
|
||||||
}
|
}
|
||||||
return "<p>ExecMethod('$method'): error in parts!<br />".function_backtrace()."</p>\n";
|
error_log("ExecMethod('$method', ...) Error in parts! ".function_backtrace());
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user