Skip to content

Commit

Permalink
chore: fix autovivification on false
Browse files Browse the repository at this point in the history
  • Loading branch information
mae829 committed Oct 9, 2023
1 parent 68ba3f0 commit 5267e72
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions restricted_site_access.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,10 @@ private static function get_network_mode() {
* @param boolean $network Whether this is a network install. Default false.
*/
public static function get_options( $network = false ) {
$options = array();

if ( $network ) {
$options = get_site_option( 'rsa_options' );
$options = get_site_option( 'rsa_options', array() );
} else {
$options = get_option( 'rsa_options' );
$options = get_option( 'rsa_options', array() );
}

// Fill in defaults where values aren't set.
Expand Down

0 comments on commit 5267e72

Please sign in to comment.