Fixed SQL error
authorMarcel Werk <burntime@woltlab.com>
Sun, 11 Nov 2012 19:50:58 +0000 (20:50 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 11 Nov 2012 19:50:58 +0000 (20:50 +0100)
files/lib/system/clipboard/action/ConversationClipboardAction.class.php

index b6e00b680df06813c3a442340f8451e42769383c..7d60b25b3c905bcd9c6ef7e1dd4292f78ec1457c 100644 (file)
@@ -156,7 +156,7 @@ class ConversationClipboardAction implements IClipboardAction {
                if (!empty($conversationIDs)) {
                        $conditions = new PreparedStatementConditionBuilder();
                        $conditions->add("conversationID IN (?)", array($conversationIDs));
-                       $conditions->add("userID = ?", array(WCF::getUser()->userID));
+                       $conditions->add("participantID = ?", array(WCF::getUser()->userID));
                        
                        $sql = "SELECT  conversationID
                                FROM    wcf".WCF_N."_conversation_to_user