From c9eae5ea8cfccfc9123729ca0ae302893e62d6e8 Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Fri, 15 Sep 2023 17:11:39 +0200 Subject: [PATCH] feat: forgot this --- util/Discord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/Discord.php b/util/Discord.php index acc6de5..fa5b9d9 100644 --- a/util/Discord.php +++ b/util/Discord.php @@ -26,7 +26,7 @@ $json = json_decode($res->body, true); - if($json['error']) { + if(isset($json['error'])) { return array( 'error' => true, 'error_description' => $json['error_description'] @@ -51,7 +51,7 @@ $json = json_decode($res->body, true); - if($json['error']) { + if(isset($json['error'])) { return array( 'error' => true, 'error_description' => $json['error_description']