User::newFromName() can return false on invalid user name, and thus was throwing...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 5 Dec 2009 21:26:42 +0000 (21:26 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sat, 5 Dec 2009 21:26:42 +0000 (21:26 +0000)
includes/specials/SpecialUserlogin.php

index 5297964..0948ced 100644 (file)
@@ -272,7 +272,7 @@ class LoginForm {
                        return false;
                }
 
-               if ( is_null( $u ) ) {
+               if ( is_null( $u ) || $u === false ) {
                        $this->mainLoginForm( wfMsg( 'noname' ) );
                        return false;
                }