From f7fc253075c999bdd182c9bdc781003b37c20e02 Mon Sep 17 00:00:00 2001 From: "green-ponies (jgen)" Date: Sun, 8 Jan 2012 22:18:17 -0500 Subject: [PATCH] Display message if no comments. --- ext/comment/theme.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/comment/theme.php b/ext/comment/theme.php index 264cd67b..3e2f9138 100644 --- a/ext/comment/theme.php +++ b/ext/comment/theme.php @@ -123,6 +123,9 @@ class CommentListTheme extends Themelet { foreach($comments as $comment) { $html .= $this->comment_to_html($comment, true); } + if(empty($html)) { + $html = '

No comments by this user.

'; + } $page->add_block(new Block("Comments", $html, "left", 70)); }