From f630d3d91b55c2e2b693e91801e30a94acaaad87 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 14 Oct 2018 20:11:27 +0200 Subject: [PATCH] Don't include deleted comments in counter. --- src/news.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/news.php b/src/news.php index 488e26e8..a7b40235 100644 --- a/src/news.php +++ b/src/news.php @@ -229,6 +229,7 @@ function news_posts_get( SELECT COUNT(`comment_id`) FROM `msz_comments_posts` WHERE `category_id` = `comment_section_id` + AND `comment_deleted` IS NULL ) as `post_comments` FROM `msz_news_posts` as p LEFT JOIN `msz_news_categories` as c