Fix session deleting in SessionHandler::changeUser()
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 14 Dec 2012 16:53:01 +0000 (17:53 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 14 Dec 2012 16:53:01 +0000 (17:53 +0100)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index eb7c36759412233fe1e54819bb1e98df6125c26c..b578a6b0ed93793326011ee9aa8267b9c58e3ddd 100644 (file)
@@ -477,7 +477,7 @@ class SessionHandler extends SingletonFactory {
                                WHERE           sessionID <> ?
                                                AND userID = ?";
                        $statement = WCF::getDB()->prepareStatement($sql);
-                       $statement->execute(array($this->sessionID, $this->userID));
+                       $statement->execute(array($this->sessionID, $user->userID));
                        
                        // reset session variables
                        $this->variables = array();