Fix update_com.woltlab.wcf.conversation_5.5_cleanup_orphaned_attachments.php
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 2 Feb 2022 12:44:02 +0000 (13:44 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 2 Feb 2022 12:44:02 +0000 (13:44 +0100)
files/acp/update_com.woltlab.wcf.conversation_5.5_cleanup_orphaned_attachments.php

index 3075b336c7ec8e4b0c94b8f0ced5a3b70b1c1425..41cc12fd0ced929c75c825f68bf972f4dbe9b923 100644 (file)
@@ -25,6 +25,7 @@ $sql = "SELECT  attachmentID
                 FROM    wcf1_conversation_message
             )";
 $statement = WCF::getDB()->prepare($sql, 100);
+$statement->execute([$objectType->objectTypeID]);
 $attachmentIDs = $statement->fetchAll(\PDO::FETCH_COLUMN);
 
 if (empty($attachmentIDs)) {