From: Tim Düsterhus Date: Fri, 14 May 2021 11:44:55 +0000 (+0200) Subject: Ignore duplicate key errors when creating a legacy session X-Git-Tag: 5.4.0_Alpha_3~35 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7878eb77952c506e5818587b49f9a64773b87fb1;p=GitHub%2FWoltLab%2FWCF.git Ignore duplicate key errors when creating a legacy session Fixes #4214 --- diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 6c13bf0585..3792bc7313 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::create($sessionData); + return SessionEditor::createOrIgnore($sessionData); } /**