diff options
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 1e77fff79..a1e36a90f 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1166,8 +1166,8 @@ function comment_render($node, $cid = 0) { ->limit($comments_per_page); $count_query = db_select('comment', 'c'); + $count_query->addExpression('COUNT(*)'); $count_query - ->fields('c', array('cid')) ->condition('c.nid', $nid) ->addTag('node_access'); |