diff options
author | Brian Evans <grknight@gentoo.org> | 2020-10-02 15:07:11 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2020-10-02 15:07:11 -0400 |
commit | e7e713baba52955dea8106c4b050781203280127 (patch) | |
tree | 6c49ddf8c0741ce2a4b57804c44ddf7675860a54 /PluggableAuth/includes/PluggableAuth.php | |
parent | Update OpenIDConnect to 1.35 (diff) | |
download | extensions-e7e713baba52955dea8106c4b050781203280127.tar.gz extensions-e7e713baba52955dea8106c4b050781203280127.tar.bz2 extensions-e7e713baba52955dea8106c4b050781203280127.zip |
Update PluggableAuth to 1.35
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'PluggableAuth/includes/PluggableAuth.php')
-rw-r--r-- | PluggableAuth/includes/PluggableAuth.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/PluggableAuth/includes/PluggableAuth.php b/PluggableAuth/includes/PluggableAuth.php index 8ecf4e40..afde9d17 100644 --- a/PluggableAuth/includes/PluggableAuth.php +++ b/PluggableAuth/includes/PluggableAuth.php @@ -37,8 +37,11 @@ abstract class PluggableAuth { */ public static function singleton() { wfDebugLog( 'PluggableAuth', 'Getting PluggableAuth singleton' ); - wfDebugLog( 'PluggableAuth', 'Class name: ' . $GLOBALS['wgPluggableAuth_Class'] ); - if ( !is_null( self::$instance ) ) { + wfDebugLog( + 'PluggableAuth', + 'Class name: ' . ( $GLOBALS['wgPluggableAuth_Class'] ?? 'unset' ) + ); + if ( self::$instance !== null ) { wfDebugLog( 'PluggableAuth', 'Singleton already exists' ); return self::$instance; } elseif ( isset( $GLOBALS['wgPluggableAuth_Class'] ) && |