From a874058a8dfc1c42910da36022d2d546e9823d8a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 5 Jul 2005 20:00:42 +0000 Subject: [PATCH] * (bug 2708) Avoid undefined notice on cookieless login attempt --- RELEASE-NOTES | 2 ++ includes/SpecialUserlogin.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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()] ) ); } /** -- 2.20.1