Fixed SQL query
authorAlexander Ebert <ebert@woltlab.com>
Mon, 8 Jul 2013 11:34:02 +0000 (13:34 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 8 Jul 2013 11:34:02 +0000 (13:34 +0200)
files/lib/data/conversation/ConversationEditor.class.php

index 49eaa95f12cb2c0f265a66e67a27a81a3d9cb68b..2e3a88de7767dfae6d9a88e21e669296ca9dcb2b 100644 (file)
@@ -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));