From 9737659317a1722418f2178aefd881b2fc279355 Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 12 Oct 2018 19:35:38 +0200 Subject: [PATCH] Fixed deleted comments being included in count. --- src/comments.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/comments.php b/src/comments.php index 2ab6cd04..5f26e4d8 100644 --- a/src/comments.php +++ b/src/comments.php @@ -215,6 +215,7 @@ define('MSZ_COMMENTS_CATEGORY_QUERY', ' LEFT JOIN `msz_roles` as r ON r.`role_id` = u.`display_role` WHERE p.`category_id` = :category + AND p.`comment_deleted` IS NULL %s ORDER BY p.`comment_pinned` DESC, p.`comment_id` %s ');