diff --git a/Request/Request.php b/Request/Request.php index 2f3fe07..179ba4d 100644 --- a/Request/Request.php +++ b/Request/Request.php @@ -137,8 +137,8 @@ public function start() } if(($json !== false) && (strlen($json) > 0)){ - $tweet = json_decode($json); - if($tweet){ + $tweet = json_decode($json, true); + if($tweet && is_array($tweet)){ $tweet_model = new TweetModel(); $user_model = new UserModel(); @@ -166,4 +166,4 @@ public function start() } return; } -}; \ No newline at end of file +};