Skip to content

Commit

Permalink
fix: add is_null check for access_token
Browse files Browse the repository at this point in the history
  • Loading branch information
devuri committed Jan 25, 2021
1 parent c06cbcf commit 6e7ea52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/InstagramData.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public static function access_token() {
return false;
}

if ( is_null( get_option( 'simsf_token' )['access_token'] ) ) {
return false;
}

if ( false === get_option( 'simsf_token' )['access_token'] ) {
return false;
}
Expand Down

0 comments on commit 6e7ea52

Please sign in to comment.