isset() will return false with a value is null. Null is an acceptable
result for a configuration variable, so switch to array_key_exists.
Change-Id: I11a3feb07d2bdc7ee30975014db29365086f89bc
foreach ( $this->settings_list as $name ) {
if ( !preg_match( '/^wg[A-Z]/', $name ) ) {
throw new MWException( "Variable '$name' does start with 'wg'." );
- } elseif ( !isset( $GLOBALS[$name] ) ) {
+ } elseif ( !array_key_exists( $name, $GLOBALS ) ) {
throw new MWException( "Variable '$name' is not set." );
} elseif ( !$this->isAllowedVariable( $GLOBALS[$name] ) ) {
throw new MWException( "Variable '$name' includes non-array, non-scalar, items." );