diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-11-18 09:03:26 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-11-18 09:03:26 +0000 |
commit | 394de8ec0a2393625f207e44192503a921f67834 (patch) | |
tree | 65fe121485725812378b202dfd9636c3a43f3874 /modules/comment/helpers | |
parent | 3ebb751cda5d47147a5c828b4cb32ecd4a9f8042 (diff) |
Gracefully handle the no-comments case
Diffstat (limited to 'modules/comment/helpers')
-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"; + } } } |