Display message if no comments.

This commit is contained in:
green-ponies (jgen) 2012-01-08 22:18:17 -05:00 committed by Shish
parent fdca5e4662
commit d46244f926

View File

@ -123,6 +123,9 @@ class CommentListTheme extends Themelet {
foreach($comments as $comment) {
$html .= $this->comment_to_html($comment, true);
}
if(empty($html)) {
$html = '<p>No comments by this user.</p>';
}
$page->add_block(new Block("Comments", $html, "left", 70));
}