Fix issue when deleting comments
authorMarcel Werk <burntime@woltlab.com>
Thu, 7 Nov 2024 11:09:00 +0000 (12:09 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 7 Nov 2024 11:09:00 +0000 (12:09 +0100)
wcfsetup/install/files/lib/system/comment/command/DeleteComments.class.php

index bb68b50aeecca22811c1a840330294327e5a85f4..015e094cee2aae3703ea58b859526c7c9abee396 100644 (file)
@@ -100,8 +100,8 @@ final class DeleteComments
     {
         $responseList = new CommentResponseList();
         $responseList->getConditionBuilder()->add('comment_response.commentID IN (?)', [$this->commentIDs]);
-        $responseList->readObjectIDs();
-        if (!\count($responseList->getObjectIDs())) {
+        $responseList->readObjects();
+        if (!\count($responseList)) {
             return;
         }