From 917a92a9e48dc20074e3a55a7440c256b3f59bd8 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 19 Oct 2011 17:37:55 +0200 Subject: [PATCH] Fixed a problem with prepared statements. --- wcfsetup/install/files/lib/data/user/UserEditor.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/user/UserEditor.class.php b/wcfsetup/install/files/lib/data/user/UserEditor.class.php index 39463d4a96..f3697a35b3 100644 --- a/wcfsetup/install/files/lib/data/user/UserEditor.class.php +++ b/wcfsetup/install/files/lib/data/user/UserEditor.class.php @@ -158,8 +158,8 @@ class UserEditor extends DatabaseObjectEditor { public function addToGroup($groupID) { $sql = "SELECT COUNT(*) AS count FROM wcf".WCF_N."_user_to_group - WHERE userID = ?".$this->userID." - AND groupID = ?".$groupID; + WHERE userID = ? + AND groupID = ?"; $statement = WCF::getDB()->prepareStatement($sql); $statement->execute(array( $this->userID, @@ -191,7 +191,7 @@ class UserEditor extends DatabaseObjectEditor { /** * Removes a user from multiple user groups. - * + * * @param array $groupIDs */ public function removeFromGroups(array $groupIDs) { -- 2.20.1