mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix for: Empty post body for json will put null value in request->data
This commit is contained in:
parent
d4c351563e
commit
142c19c557
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue