Fix another instance of the result of User::newFromName() being compared with null...
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 9 Apr 2010 22:12:38 +0000 (22:12 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 9 Apr 2010 22:12:38 +0000 (22:12 +0000)
includes/specials/SpecialUserlogin.php

index fe9e5cd..bfc6c26 100644 (file)
@@ -708,7 +708,7 @@ class LoginForm {
                        return;
                }
                $u = User::newFromName( $this->mName );
-               if( is_null( $u ) ) {
+               if( !$u instanceof User ) {
                        $this->mainLoginForm( wfMsg( 'noname' ) );
                        return;
                }