From: Rob Church Date: Tue, 4 Apr 2006 12:21:35 +0000 (+0000) Subject: Let's not have another fatal error due to a simple oversight right before a release... X-Git-Tag: 1.6.0~28 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=54197848171542da1a4a6eb40a01700c15c7b01a;p=lhc%2Fweb%2Fwiklou.git Let's not have another fatal error due to a simple oversight right before a release, shall we? --- diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 048fd2a5b6..1f6e5a5951 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -205,7 +205,7 @@ class LoginForm { $name = trim( $this->mName ); $u = User::newFromName( $name ); - if ( is_null( $u ) || $u->getName() = 'MediaWiki default' ) { + if ( is_null( $u ) || $u->getName() == 'MediaWiki default' ) { $this->mainLoginForm( wfMsg( 'noname' ) ); return false; }