From: Brion Vibber Date: Tue, 5 Jul 2005 20:00:42 +0000 (+0000) Subject: * (bug 2708) Avoid undefined notice on cookieless login attempt X-Git-Tag: 1.5.0beta3~43 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=a874058a8dfc1c42910da36022d2d546e9823d8a;p=lhc%2Fweb%2Fwiklou.git * (bug 2708) Avoid undefined notice on cookieless login attempt --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 86d1b8e76e..4a862fb088 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -504,6 +504,8 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new. == Changes since 1.5beta2 == * Escaped & correctly in Special:Contributions * (bug 2534) Hide edit sections with CSS to make right click to edit section work +* (bug 2708) Avoid undefined notice on cookieless login attempt + === Caveats === diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index b392a385df..bb3e0c6a0f 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -482,7 +482,7 @@ class LoginForm { */ function hasSessionCookie() { global $wgDisableCookieCheck; - return ( $wgDisableCookieCheck ) ? true : ( '' != $_COOKIE[session_name()] ); + return ( $wgDisableCookieCheck ) ? true : ( isset( $_COOKIE[session_name()] ) ); } /**