From: Tim Düsterhus Date: Tue, 18 May 2021 08:11:07 +0000 (+0200) Subject: Revert "Ignore duplicate key errors when creating a legacy session" X-Git-Tag: 5.4.0_Alpha_3~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=56907cbfdbffce294870fbf83380b647b7edc95e;p=GitHub%2FWoltLab%2FWCF.git 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. --- 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); } /**