Remove useless condition in SessionHandler::create()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 1 Oct 2020 09:45:23 +0000 (11:45 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 1 Oct 2020 10:03:48 +0000 (12:03 +0200)
`$session` is always `null` at this point since the previous commit.

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

index c048a62db2d89d0503d3ba443feb2c8b6fb67e74..e50fb1a3d28524f3e9d2c370958e6e1016aea5a9 100644 (file)
@@ -547,14 +547,6 @@ class SessionHandler extends SingletonFactory {
                $createNewSession = true;
                $session = null;
                
-               if ($session !== null) {
-                       // inherit existing session
-                       $this->session = $session;
-                       $this->loadVirtualSession(true);
-                               
-                       $createNewSession = false;
-               }
-               
                if ($createNewSession) {
                        // save session
                        $sessionData = [