Remove loading of the virtual session from SessionHandler::getExistingSession()
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 30 Sep 2020 14:36:54 +0000 (16:36 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 1 Oct 2020 14:11:28 +0000 (16:11 +0200)
The loading will be performed in loadVirtualSession(), so this change does not
result in a visible behavioral change.

wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index a6fb3cb4ed0456e502a9be7b567d7650bb34b8d3..027131dee02f7f9f0358fe5eddf197a017910ffd 100644 (file)
@@ -436,12 +436,6 @@ class SessionHandler extends SingletonFactory {
                }
                
                $this->user = new User($this->session->userID);
-               if ($this->isACP) {
-                       $this->virtualSession = ACPSessionVirtual::getExistingSession($sessionID);
-               }
-               else {
-                       $this->virtualSession = SessionVirtual::getExistingSession($sessionID);
-               }
                
                $this->loadVirtualSession();
        }