From 383f88e363bcd2e1c2c3948723f788f8e85fd448 Mon Sep 17 00:00:00 2001 From: Markus Gerdelmann Date: Tue, 30 Aug 2011 06:23:21 +0200 Subject: [PATCH] Bugfix UserEdit-Funktion --> FATAL ERROR --- 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 39463d4a96..9e58c5feeb 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 = "INSERT INTO wcf".WCF_N."_user_to_group + $sql = "REPLACE INTO wcf".WCF_N."_user_to_group (userID, groupID) VALUES (?, ?)"; $statement = WCF::getDB()->prepareStatement($sql); -- 2.20.1