Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git] / examples / restful / remote / lib / request.php
index 8d50662..bb8461e 100644 (file)
@@ -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;
+                }
             }
 
         }