From 6b7b6fac5858361955f892215e80242047bbf663 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 17 Apr 2014 15:07:02 +0000 Subject: [PATCH] returning false and logging error in ExecMethod, not returning an error-message --- phpgwapi/inc/common_functions.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index d376dfeac9..46f3921a59 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -965,8 +965,8 @@ function ExecMethod($method, $functionparam = '_UNDEF_', $loglevel = 3, $classpa if (!method_exists($GLOBALS[$classname],$functionname)) { - echo "

".function_backtrace().": no methode '$functionname' in class '$classname'

\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 "

ExecMethod('$method'): error in parts!
".function_backtrace()."

\n"; + error_log("ExecMethod('$method', ...) Error in parts! ".function_backtrace()); + return false; } /**