From: Tim Düsterhus Date: Tue, 8 Mar 2016 23:33:08 +0000 (+0100) Subject: Create virtual sessions for guests X-Git-Tag: 3.0.0_Beta_1~1968^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=699c0793347be2de2fd8d34069b4aafdc3e8da03;p=GitHub%2FWoltLab%2FWCF.git Create virtual sessions for guests --- 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 {