git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git]
/
examples
/
restful
/
remote
/
lib
/
request.php
diff --git
a/examples/restful/remote/lib/request.php
b/examples/restful/remote/lib/request.php
index
8d50662
..
bb8461e
100644
(file)
--- 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 = json_decode(stripslashes($params['data']));
} else {
$params = json_decode(stripslashes($raw));
- $this->params = $params
->data
;
+ $this->params = $params;
}
} else {
// grab JSON data if there...
}
} else {
// grab JSON data if there...
@@
-44,7
+44,9
@@
class Request {
$raw .= $kb;
}
$params = json_decode(stripslashes($raw));
$raw .= $kb;
}
$params = json_decode(stripslashes($raw));
- $this->params = $params->data;
+ if ($params) {
+ $this->params = $params;
+ }
}
}
}
}