From d39758ba490b8bec931f639c864fba88ae7f0e13 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Fri, 28 May 2021 21:50:04 +0530 Subject: [PATCH] Update src/Appwrite/Auth/OAuth2/Twitch.php Co-authored-by: Eldad A. Fux --- src/Appwrite/Auth/OAuth2/Twitch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Auth/OAuth2/Twitch.php b/src/Appwrite/Auth/OAuth2/Twitch.php index 04307a80b..9608f9f61 100644 --- a/src/Appwrite/Auth/OAuth2/Twitch.php +++ b/src/Appwrite/Auth/OAuth2/Twitch.php @@ -145,7 +145,7 @@ class Twitch extends OAuth2 ] ), true); - $this->user = $response['data']['0']; + $this->user = $response['data']['0'] ?? []; } return $this->user;