Commit 46a6e08c authored by Dries's avatar Dries
Browse files

- Patch #51314 by kjartan, eafarris, et al: hide the last comment block if there are no comments.

parent 9460c930
......@@ -178,7 +178,9 @@ function theme_comment_block() {
while ($comment = db_fetch_object($result)) {
$items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid) .'<br />'. t('@time ago', array('@time' => format_interval(time() - $comment->timestamp)));
}
return theme('item_list', $items);
if ($items) {
return theme('item_list', $items);
}
}
/**
......
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