From df1059ade0bb5a37f7aefe1054c2fe84957aa322 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 11 Mar 2021 09:28:08 +0100 Subject: [PATCH] Remove useless condition in SessionHandler::createLegacySession() The default value is `null`, so we can set that explicitly. --- .../files/lib/system/session/SessionHandler.class.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 94edee86fd..49936cb275 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -716,12 +716,9 @@ final class SessionHandler extends SingletonFactory 'lastActivityTime' => TIME_NOW, 'requestURI' => UserUtil::getRequestURI(), 'requestMethod' => !empty($_SERVER['REQUEST_METHOD']) ? \substr($_SERVER['REQUEST_METHOD'], 0, 7) : '', + 'spiderID' => $spiderID, ]; - if ($spiderID !== null) { - $sessionData['spiderID'] = $spiderID; - } - $this->legacySession = SessionEditor::create($sessionData); } -- 2.20.1