Fix bug with callback's arguments in RequestProcessor class

This commit is contained in:
Dmitriy Simushev 2012-09-26 13:07:54 +00:00
parent 7e49da1999
commit 1d4cac01d1

View File

@ -150,8 +150,9 @@ abstract class RequestProcessor {
$arguments += empty($callback['arguments']) $arguments += empty($callback['arguments'])
? array() ? array()
: $callback['arguments']; : $callback['arguments'];
call_user_func_array($function, $arguments); call_user_func_array($function, array($arguments));
} }
return true;
} else { } else {
// Process request // Process request
$arguments = $this->processRequest($request, false); $arguments = $this->processRequest($request, false);