From: Marcel Werk Date: Thu, 30 Jul 2020 16:03:14 +0000 (+0200) Subject: New method that will ignore duplicate key errors while inserting rows into the database X-Git-Tag: 5.3.0_Alpha_1~114 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=00c3252a1d66bc1b4bc46b80901c0540a37e1dce;p=GitHub%2FWoltLab%2FWCF.git New method that will ignore duplicate key errors while inserting rows into the database --- diff --git a/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php b/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php index 19cea93519..1126fae67d 100644 --- a/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php +++ b/wcfsetup/install/files/lib/data/DatabaseObjectEditor.class.php @@ -1,5 +1,6 @@ getCode() == '23000') { + return null; + } + + throw $e; + } + } }