Commit a77601f6 authored by Dries's avatar Dries

- Patch #352337 by catch: avoid unnecessary query in comment render.

parent 92a8adea
......@@ -1043,7 +1043,8 @@ function comment_render($node, $cid = 0) {
$output .= theme('comment_view', $comment, $node, $links);
}
}
else {
// Only attempt to render comments if the node has been commented upon.
elseif ($node->comment_count) {
//TODO Convert to dynamic queries once the pager query is updated to the new DBTNG API.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment