Skip to content

Commit

Permalink
Confirm array item is present before attempting access (#102)
Browse files Browse the repository at this point in the history
Fixes #101
  • Loading branch information
kraftbj authored Jan 5, 2021
1 parent cf5f34a commit 4a5e349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jetpack-beta.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ static function is_on_stable() {

static function is_on_tag() {
$option = (array) self::get_option();
if ( $option[1] == 'tags' ) {
if ( isset( $option[1] ) && 'tags' === $option[1] ) {
return true;
}
return false;
Expand Down

0 comments on commit 4a5e349

Please sign in to comment.