From: Markus Gerdelmann Date: Tue, 30 Aug 2011 08:12:11 +0000 (+0300) Subject: UserEditor.class.php modified. X-Git-Tag: 2.0.0_Beta_1~1800^2~1^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d10f10438c2ee57c41af05e10ae3c2eeea89514a;p=GitHub%2FWoltLab%2FWCF.git UserEditor.class.php modified. Query now change into INSERT IGNORE INTO, so all DBs can work with. BugFix for FATAL-ERROR during edit User. --- diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index 9e58c5feeb..42aa36e148 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 IGNORE INTO wcf".WCF_N."_user_to_group (userID, groupID) VALUES (?, ?)"; $statement = WCF::getDB()->prepareStatement($sql);