Bugfix UserEdit-Funktion --> FATAL ERROR
authorMarkus Gerdelmann <mdman@mdman.de>
Tue, 30 Aug 2011 04:23:21 +0000 (06:23 +0200)
committerMarkus Gerdelmann <mdman@mdman.de>
Tue, 30 Aug 2011 04:23:21 +0000 (06:23 +0200)
wcfsetup/install/files/lib/data/user/UserEditor.class.php

index 39463d4a961420b2ff25738b85fce5fe548ed6a3..9e58c5feebd92028a418f08f478b6c84fbd78247 100644 (file)
@@ -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);