From: Chad Horohoe Date: Sat, 6 Sep 2008 12:51:09 +0000 (+0000) Subject: Syntax error. Consequently, getCookie() returns null if it can't find one, so we... X-Git-Tag: 1.31.0-rc.0~45441 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=6c8706ce128d0fb12366c08b49f3270c71737aef;p=lhc%2Fweb%2Fwiklou.git Syntax error. Consequently, getCookie() returns null if it can't find one, so we can just directly call it here and skip a logic step. --- diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 5f76909922..5e73de45ed 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -767,7 +767,7 @@ class LoginForm { if ( $wgUser->isLoggedIn() ) { $this->mName = $wgUser->getName(); } else { - $this->mName = isset( $wgRequest->getCookie('UserName') ) ? $wgRequest->getCookie('UserName') : null; + $this->mName = $wgRequest->getCookie('UserName'); } }