From: Alexander Ebert Date: Mon, 8 Jul 2013 11:34:02 +0000 (+0200) Subject: Fixed SQL query X-Git-Tag: 2.0.0_Beta_3~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=48c87bc1052bf84b63280ac44ec20081f14e5a89;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Fixed SQL query --- diff --git a/files/lib/data/conversation/ConversationEditor.class.php b/files/lib/data/conversation/ConversationEditor.class.php index 49eaa95..2e3a88d 100644 --- a/files/lib/data/conversation/ConversationEditor.class.php +++ b/files/lib/data/conversation/ConversationEditor.class.php @@ -143,8 +143,8 @@ class ConversationEditor extends DatabaseObjectEditor { $sql = "SELECT participantID AS userID, hideConversation, username FROM wcf".WCF_N."_conversation_to_user WHERE conversationID = ? - participantID <> ? - isInvisible = 0 + AND participantID <> ? + AND isInvisible = 0 ORDER BY username"; $statement = WCF::getDB()->prepareStatement($sql, 5); $statement->execute(array($this->conversationID, $this->userID));