Revert "Ignore duplicate key errors when creating a legacy session"
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 18 May 2021 08:11:07 +0000 (10:11 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 18 May 2021 08:16:52 +0000 (10:16 +0200)
This commit was incorrect, as `createOrIgnore()` might return `null` which is
disallowed by the return type and is undesired.

This reverts commit 7878eb77952c506e5818587b49f9a64773b87fb1.

wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index bdc00eb17bd4196b7bde2ede6d0e034c66bcc846..f3a7eb8858eedf51aa4a640bc5e25d5f12ea2df4 100644 (file)
@@ -747,7 +747,7 @@ final class SessionHandler extends SingletonFactory
             'spiderID' => $spiderID,
         ];
 
-        return SessionEditor::createOrIgnore($sessionData);
+        return SessionEditor::create($sessionData);
     }
 
     /**