Skip to content

Commit

Permalink
fix: undefined index access token in controller
Browse files Browse the repository at this point in the history
  • Loading branch information
wlalele committed Aug 10, 2021
1 parent e8e19dd commit 19b26b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion open-oauth-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19b26b1

Please sign in to comment.