From 3880927fdc5fc427e4b485639d1813c4cb3bee52 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 2 Feb 2022 13:44:02 +0100 Subject: [PATCH] Fix update_com.woltlab.wcf.conversation_5.5_cleanup_orphaned_attachments.php --- ...woltlab.wcf.conversation_5.5_cleanup_orphaned_attachments.php | 1 + 1 file changed, 1 insertion(+) diff --git a/files/acp/update_com.woltlab.wcf.conversation_5.5_cleanup_orphaned_attachments.php b/files/acp/update_com.woltlab.wcf.conversation_5.5_cleanup_orphaned_attachments.php index 3075b33..41cc12f 100644 --- a/files/acp/update_com.woltlab.wcf.conversation_5.5_cleanup_orphaned_attachments.php +++ b/files/acp/update_com.woltlab.wcf.conversation_5.5_cleanup_orphaned_attachments.php @@ -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)) { -- 2.20.1