Per Nikerabbit, follow-up to r59761: just check for "instanceof User"
[lhc/web/wiklou.git] / includes / specials / SpecialUserlogin.php
index 0948ced..6d1a2d9 100644 (file)
@@ -272,7 +272,7 @@ class LoginForm {
                        return false;
                }
 
-               if ( is_null( $u ) || $u === false ) {
+               if ( !$u instanceof User ) {
                        $this->mainLoginForm( wfMsg( 'noname' ) );
                        return false;
                }