From: Markus Gerdelmann Date: Tue, 30 Aug 2011 04:23:21 +0000 (+0200) Subject: Bugfix UserEdit-Funktion --> FATAL ERROR X-Git-Tag: 2.0.0_Beta_1~1800^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=383f88e363bcd2e1c2c3948723f788f8e85fd448;p=GitHub%2FWoltLab%2FWCF.git Bugfix UserEdit-Funktion --> FATAL ERROR --- 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);