From dce6100f0e438ccb37074e6ed8d7839a6f80dfc5 Mon Sep 17 00:00:00 2001 From: Markus Gerdelmann Date: Wed, 31 Aug 2011 16:05:11 +0200 Subject: [PATCH] modified UserAction and UserEditor. --- wcfsetup/install/files/lib/data/user/UserAction.class.php | 2 +- wcfsetup/install/files/lib/data/user/UserEditor.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/UserAction.class.php b/wcfsetup/install/files/lib/data/user/UserAction.class.php index 766177ffea..494a68f21c 100644 --- a/wcfsetup/install/files/lib/data/user/UserAction.class.php +++ b/wcfsetup/install/files/lib/data/user/UserAction.class.php @@ -128,7 +128,7 @@ class UserAction extends AbstractDatabaseObjectAction { foreach ($this->objects as $userEditor) { if (count($groupIDs)) { - $userEditor->addToGroups($groupIDs, false, false); + $userEditor->addToGroups($groupIDs, true, true); } if (count($removeGroups)) { diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index 9e58c5feeb..39463d4a96 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 INTO wcf".WCF_N."_user_to_group (userID, groupID) VALUES (?, ?)"; $statement = WCF::getDB()->prepareStatement($sql); -- 2.20.1