From: Markus Gerdelmann Date: Wed, 31 Aug 2011 14:05:11 +0000 (+0200) Subject: modified UserAction and UserEditor. X-Git-Tag: 2.0.0_Beta_1~1800^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dce6100f0e438ccb37074e6ed8d7839a6f80dfc5;p=GitHub%2FWoltLab%2FWCF.git modified UserAction and UserEditor. --- 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);