mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +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) {
|
if (count($this->data) <= 1) {
|
||||||
$this->data = $data;
|
$this->data = $data;
|
||||||
}
|
} else {
|
||||||
if (count($this->data) > 1) {
|
|
||||||
unset($this->data['data']);
|
unset($this->data['data']);
|
||||||
$this->data = Set::merge($this->data, $data);
|
$this->data = Set::merge($this->data, $data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue