From bfdea95337376b00e60049b640c076e8ab32293f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 11 Jun 2009 15:17:15 +0000 Subject: - Patch #484090 by Berdir, tic2000: comment pager was broken. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/comment/comment.module') 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'); -- cgit v1.2.3