summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modules/forum/forum.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/forum/forum.module b/core/modules/forum/forum.module
index b334c42..6566539 100644
--- a/core/modules/forum/forum.module
+++ b/core/modules/forum/forum.module
@@ -779,7 +779,7 @@ function forum_forum_load($tid = NULL) {
$query->addExpression('SUM(ncs.comment_count)', 'comment_count');
$counts = $query
->fields('f', array('tid'))
- ->condition('status', 1)
+ ->condition('n.status', 1)
->groupBy('tid')
->addTag('node_access')
->execute()