From d10f10438c2ee57c41af05e10ae3c2eeea89514a Mon Sep 17 00:00:00 2001 From: Markus Gerdelmann Date: Tue, 30 Aug 2011 11:12:11 +0300 Subject: [PATCH] UserEditor.class.php modified. Query now change into INSERT IGNORE INTO, so all DBs can work with. BugFix for FATAL-ERROR during edit User. --- wcfsetup/install/files/lib/data/user/UserEditor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index 9e58c5feeb..42aa36e148 100644 --- a/wcfsetup/install/files/lib/data/user/UserEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/UserEditor.class.php @@ -140,7 +140,7 @@ class UserEditor extends DatabaseObjectEditor { // insert new groups if (count($groupIDs) > 0) { - $sql = "REPLACE INTO wcf".WCF_N."_user_to_group + $sql = "INSERT IGNORE INTO wcf".WCF_N."_user_to_group (userID, groupID) VALUES (?, ?)"; $statement = WCF::getDB()->prepareStatement($sql); -- 2.20.1