From 394de8ec0a2393625f207e44192503a921f67834 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 18 Nov 2008 09:03:26 +0000 Subject: Gracefully handle the no-comments case --- modules/comment/helpers/comment.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/comment/helpers') 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 "\n"; + if (!empty($html)) { + return "\n"; + } } } -- cgit v1.2.3