From: Roan Kattouw Date: Fri, 9 Apr 2010 22:12:38 +0000 (+0000) Subject: Fix another instance of the result of User::newFromName() being compared with null... X-Git-Tag: 1.31.0-rc.0~37181 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=6be952f5c6550beb3b09a365871613310b8623e3;p=lhc%2Fweb%2Fwiklou.git Fix another instance of the result of User::newFromName() being compared with null, fixes fatal errors --- diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index fe9e5cd176..bfc6c26962 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -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; }