* (bug 2708) Avoid undefined notice on cookieless login attempt
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 5 Jul 2005 20:00:42 +0000 (20:00 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 5 Jul 2005 20:00:42 +0000 (20:00 +0000)
RELEASE-NOTES
includes/SpecialUserlogin.php

index 86d1b8e..4a862fb 100644 (file)
@@ -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 ===
 
index b392a38..bb3e0c6 100644 (file)
@@ -482,7 +482,7 @@ class LoginForm {
         */
        function hasSessionCookie() {
                global $wgDisableCookieCheck;
-               return ( $wgDisableCookieCheck ) ? true : ( '' != $_COOKIE[session_name()] );
+               return ( $wgDisableCookieCheck ) ? true : ( isset( $_COOKIE[session_name()] ) );
        }
          
        /**