diff --git a/flight/net/Request.php b/flight/net/Request.php index 19a8331..8e8a963 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -190,7 +190,7 @@ class Request { $body = $this->getBody(); if ($body != '') { $data = json_decode($body, true); - if ($data != null) { + if (is_array($data)) { $this->data->setData($data); } }