Display message if no comments.
This commit is contained in:
parent
fdca5e4662
commit
d46244f926
@ -123,6 +123,9 @@ class CommentListTheme extends Themelet {
|
|||||||
foreach($comments as $comment) {
|
foreach($comments as $comment) {
|
||||||
$html .= $this->comment_to_html($comment, true);
|
$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));
|
$page->add_block(new Block("Comments", $html, "left", 70));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user