From ff230680f41015393cc0aef24678577f6c49eeca Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 31 Oct 2005 18:12:33 +0000 Subject: [PATCH] fix entry count, thanks to chris from the forums --- docs/NEWS | 3 +++ include/plugin_internal.inc.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/NEWS b/docs/NEWS index 244e96b..2c5f774 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -3,6 +3,9 @@ Version 0.9.1 () ------------------------------------------------------------------------ + * Fix incorrect entry count in categories sidebar plugin (was also + counting drafts) + * Set the correct reply-to name when sending comment mails, thanks to RobA from the forums (garvinhicking) diff --git a/include/plugin_internal.inc.php b/include/plugin_internal.inc.php index c81f719..34f10cb 100644 --- a/include/plugin_internal.inc.php +++ b/include/plugin_internal.inc.php @@ -1313,7 +1313,7 @@ class serendipity_categories_plugin extends serendipity_plugin { FROM {$serendipity['dbPrefix']}entrycat ec, {$serendipity['dbPrefix']}category c, {$serendipity['dbPrefix']}entries e - WHERE ec.categoryid = c.categoryid AND ec.entryid = e.id + WHERE ec.categoryid = c.categoryid AND ec.entryid = e.id AND e.isdraft = 'false' GROUP BY c.categoryid, c.category_name ORDER BY postings DESC"; $category_rows = serendipity_db_query($cat_sql); -- 2.39.5