Merge "Prevent "Failed to create..." warnings when session loading fails"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 3 Mar 2016 17:11:05 +0000 (17:11 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 3 Mar 2016 17:11:05 +0000 (17:11 +0000)
includes/session/SessionManager.php

index 58f995f..81f8243 100644 (file)
@@ -202,6 +202,7 @@ final class SessionManager implements SessionManagerInterface {
                // of "no such ID"
                $key = wfMemcKey( 'MWSession', $id );
                if ( is_array( $this->store->get( $key ) ) ) {
+                       $create = false;
                        $info = new SessionInfo( SessionInfo::MIN_PRIORITY, [ 'id' => $id, 'idIsSafe' => true ] );
                        if ( $this->loadSessionInfoFromStore( $info, $request ) ) {
                                $session = $this->getSessionFromInfo( $info, $request );