Fixed virtual sessions being considered within ACP 2.1.1
authorAlexander Ebert <ebert@woltlab.com>
Tue, 3 Mar 2015 19:35:21 +0000 (20:35 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 3 Mar 2015 19:35:21 +0000 (20:35 +0100)
wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index 830231c7401cb19191802fe0163df1c198b3cef7..093238cfc6124dece235402adb2e5db6563fe6e5 100644 (file)
@@ -382,7 +382,7 @@ class SessionHandler extends SingletonFactory {
                }
                
                $this->user = new User($this->session->userID);
-               $this->virtualSession = SessionVirtual::getExistingSession($sessionID);
+               if ($this->supportsVirtualSessions) $this->virtualSession = SessionVirtual::getExistingSession($sessionID);
                
                if (!$this->validate()) {
                        $this->session = null;
@@ -392,7 +392,7 @@ class SessionHandler extends SingletonFactory {
                        return;
                }
                
-               $this->loadVirtualSession();
+               if ($this->supportsVirtualSessions) $this->loadVirtualSession();
        }
        
        /**