Skip to content
Permalink
Browse files

fixing incorrect post data

  • Loading branch information...
ceeram committed Feb 22, 2012
1 parent 2e2ee3b commit 55b8f66095e3cd97252aa7896eb6dab0e7c7440a
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Cake/Network/CakeRequest.php
@@ -148,7 +148,7 @@ public function __construct($url = null, $parseEnvironment = true) {
* process the post data and set what is there into the object.
* processed data is available at `$this->data`
*
* Will merge POST vars prefixed with `data`, and ones without
* Will merge POST vars prefixed with `data`, and ones without
* into a single array. Variables prefixed with `data` will overwrite those without.
*
* If you have mixed POST values be careful not to make any top level keys numeric
@@ -179,8 +179,7 @@ protected function _processPost() {
}
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);
}

0 comments on commit 55b8f66

Please sign in to comment.
You can’t perform that action at this time.