diff --git a/objects/Streamer.php b/objects/Streamer.php index 782685a5..7df1d94c 100644 --- a/objects/Streamer.php +++ b/objects/Streamer.php @@ -387,6 +387,10 @@ static function revalidateToken($streamers_id, $provider) static function getAccessToken($streamers_id, $provider){ $json = self::revalidateToken($streamers_id, $provider); //var_dump($json);exit; + if(empty($json['accessToken']["access_token"])){ + _error_log(json_encode($json)); + return false; + } return $json['accessToken']["access_token"]; } }