Ignore duplicate key errors when creating a legacy session
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 14 May 2021 11:44:55 +0000 (13:44 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 14 May 2021 11:46:07 +0000 (13:46 +0200)
Fixes #4214

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

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