From 699c0793347be2de2fd8d34069b4aafdc3e8da03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 9 Mar 2016 00:33:08 +0100 Subject: [PATCH] Create virtual sessions for guests --- .../install/files/lib/system/session/SessionHandler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index e067ec81f1..06b2f16a41 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -431,9 +431,9 @@ class SessionHandler extends SingletonFactory { * @param boolean $forceReload */ protected function loadVirtualSession($forceReload = false) { - if ($this->virtualSession === false || $forceReload) { + if ($this->virtualSession === null || $forceReload) { $this->virtualSession = null; - if ($this->user->userID && $this->supportsVirtualSessions) { + if ($this->supportsVirtualSessions) { $virtualSessionAction = new SessionVirtualAction(array(), 'create', array('data' => array('sessionID' => $this->session->sessionID))); try { -- 2.20.1