returning false and logging error in ExecMethod, not returning an error-message

This commit is contained in:
Ralf Becker 2014-04-17 15:07:02 +00:00
parent 0220a0b850
commit 6b7b6fac58

View File

@ -965,8 +965,8 @@ function ExecMethod($method, $functionparam = '_UNDEF_', $loglevel = 3, $classpa
if (!method_exists($GLOBALS[$classname],$functionname))
{
echo "<p><b>".function_backtrace()."</b>: no methode '$functionname' in class '$classname'</p>\n";
return False;
error_log("ExecMethod('$method', ...) No methode '$functionname' in class '$classname'! ".function_backtrace());
return false;
}
$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 "<p>ExecMethod('$method'): error in parts!<br />".function_backtrace()."</p>\n";
error_log("ExecMethod('$method', ...) Error in parts! ".function_backtrace());
return false;
}
/**