From: Marcel Werk Date: Thu, 7 Nov 2024 11:09:00 +0000 (+0100) Subject: Fix issue when deleting comments X-Git-Tag: 6.1.1_dev_1~22 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dadbc58e8778a9b707cb39e91649c2daa9babbe1;p=GitHub%2FWoltLab%2FWCF.git Fix issue when deleting comments --- diff --git a/wcfsetup/install/files/lib/system/comment/command/DeleteComments.class.php b/wcfsetup/install/files/lib/system/comment/command/DeleteComments.class.php index bb68b50aee..015e094cee 100644 --- a/wcfsetup/install/files/lib/system/comment/command/DeleteComments.class.php +++ b/wcfsetup/install/files/lib/system/comment/command/DeleteComments.class.php @@ -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; }