mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
fixing incorrect post data
This commit is contained in:
parent
2e2ee3b096
commit
55b8f66095
1 changed files with 2 additions and 3 deletions
|
@ -179,8 +179,7 @@ class CakeRequest implements ArrayAccess {
|
|||
}
|
||||
if (count($this->data) <= 1) {
|
||||
$this->data = $data;
|
||||
}
|
||||
if (count($this->data) > 1) {
|
||||
} else {
|
||||
unset($this->data['data']);
|
||||
$this->data = Set::merge($this->data, $data);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue