diff options
-rw-r--r-- | modules/comment/helpers/comment.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index aaae7c17..e474bf65 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -127,7 +127,9 @@ class Comment_Core { $v->comment = $comment; $html[] = $v; } - return "<ul>\n" . implode("\n", $html) . "</ul>\n"; + if (!empty($html)) { + return "<ul>\n" . implode("\n", $html) . "</ul>\n"; + } } } |