Code obfuscation (useless $r)
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 22 Oct 2005 21:26:11 +0000 (21:26 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 22 Oct 2005 21:26:11 +0000 (21:26 +0000)
includes/SpecialUserlogin.php

index 2af23ee..e922426 100644 (file)
@@ -267,9 +267,7 @@ class LoginForm {
                global $wgAuth;
                $wgAuth->initUser( $u );
 
-               if ( $this->mRemember ) { $r = 1; }
-               else { $r = 0; }
-               $u->setOption( 'rememberpassword', $r );
+               $u->setOption( 'rememberpassword', $this->mRemember ? 1 : 0 );
                
                return $u;
        }