Skip to content

Commit

Permalink
Merge pull request #381 from humanmade/fix-php-warning
Browse files Browse the repository at this point in the history
Fix PHP warning for empty security module settings
  • Loading branch information
mikelittle authored Feb 12, 2025
2 parents ac6a31c + a1b8423 commit 5b2dac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function override_two_factor_forced_user_roles( $roles ) {
return [];
}

if ( is_array( $config['required'] ) ) {
if ( isset( $config['required'] ) && is_array( $config['required'] ) ) {
return $config['required'];
}

Expand Down

0 comments on commit 5b2dac0

Please sign in to comment.