fixing incorrect post data

This commit is contained in:
Ceeram 2012-02-22 22:49:42 +01:00 committed by mark_story
parent 9d71df475d
commit 8eea263d71

View file

@ -178,8 +178,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);
}