Fix for: Empty post body for json will put null value in request->data

This commit is contained in:
Mark van Driel 2019-08-19 15:00:19 +02:00
parent d4c351563e
commit 142c19c557

View file

@ -220,7 +220,7 @@ class RequestHandlerComponent extends Component {
foreach ($this->_inputTypeMap as $type => $handler) {
if ($this->requestedWith($type)) {
$input = call_user_func_array(array($controller->request, 'input'), $handler);
$input = (array)call_user_func_array(array($controller->request, 'input'), $handler);
$controller->request->data = $input;
}
}