- Patch #484090 by Berdir, tic2000: comment pager was broken.

merge-requests/26/head
Dries Buytaert 2009-06-11 15:17:15 +00:00
parent 4534383a7d
commit bfdea95337
1 changed files with 1 additions and 1 deletions

View File

@ -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');