From 19b26b108ac574cb41d394a632a6e049cd660878 Mon Sep 17 00:00:00 2001 From: Amine Date: Tue, 10 Aug 2021 14:21:42 +0200 Subject: [PATCH] fix: undefined index access token in controller --- classes/Controller.php | 2 +- open-oauth-client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Controller.php b/classes/Controller.php index d57396b..aa65b61 100644 --- a/classes/Controller.php +++ b/classes/Controller.php @@ -40,7 +40,7 @@ final public function processLogin(string $code): void $code ); - $accessToken = $token['access_token']; + $accessToken = $token['access_token'] ?? null; if (!isset($accessToken)) { return; diff --git a/open-oauth-client.php b/open-oauth-client.php index 948d001..1661ca3 100644 --- a/open-oauth-client.php +++ b/open-oauth-client.php @@ -4,7 +4,7 @@ Plugin URI: https://github.com/wlalele/open-oauth-client Description: Just a simple oauth client for wordpress Author: Amine Dai -Version: 0.1.1 +Version: 0.1.2 Author URI: https://github.com/wlalele License: GPLv2 Text Domain: open-oauth-client