summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-11 15:17:15 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-11 15:17:15 +0000
commitbfdea95337376b00e60049b640c076e8ab32293f (patch)
tree3043a5f4650602c805b0bf610f42a01019d72527
parent4534383a7d14a8ccd57d2878d81fa1a992bfa1d7 (diff)
downloadbrdo-bfdea95337376b00e60049b640c076e8ab32293f.tar.gz
brdo-bfdea95337376b00e60049b640c076e8ab32293f.tar.bz2
- Patch #484090 by Berdir, tic2000: comment pager was broken.
-rw-r--r--modules/comment/comment.module2
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');