From 56907cbfdbffce294870fbf83380b647b7edc95e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 18 May 2021 10:11:07 +0200 Subject: [PATCH] Revert "Ignore duplicate key errors when creating a legacy session" This commit was incorrect, as `createOrIgnore()` might return `null` which is disallowed by the return type and is undesired. This reverts commit 7878eb77952c506e5818587b49f9a64773b87fb1. --- .../install/files/lib/system/session/SessionHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index bdc00eb17b..f3a7eb8858 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -747,7 +747,7 @@ final class SessionHandler extends SingletonFactory 'spiderID' => $spiderID, ]; - return SessionEditor::createOrIgnore($sessionData); + return SessionEditor::create($sessionData); } /** -- 2.20.1