X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/restful/remote/lib/request.php?ds=inline diff --git a/examples/restful/remote/lib/request.php b/examples/restful/remote/lib/request.php index 8d506623..bb8461e6 100644 --- a/examples/restful/remote/lib/request.php +++ b/examples/restful/remote/lib/request.php @@ -29,7 +29,7 @@ class Request { $this->params = json_decode(stripslashes($params['data'])); } else { $params = json_decode(stripslashes($raw)); - $this->params = $params->data; + $this->params = $params; } } else { // grab JSON data if there... @@ -44,7 +44,9 @@ class Request { $raw .= $kb; } $params = json_decode(stripslashes($raw)); - $this->params = $params->data; + if ($params) { + $this->params = $params; + } } }