From 3086f7393d778f923ada1ee122a34f831acaf1f9 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 22 Jan 2009 02:16:10 -0800 Subject: [PATCH] this looks silly in a fresh install --- ext/comment/main.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/comment/main.php b/ext/comment/main.php index 607d71f2..cdd4edaf 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -111,7 +111,10 @@ class CommentList implements Extension { global $config; $cc = $config->get_int("comment_count"); if($cc > 0) { - $this->theme->display_recent_comments($event->page, $this->get_recent_comments($cc)); + $recent = $this->get_recent_comments($cc); + if(count($recent) > 0) { + $this->theme->display_recent_comments($event->page, $recent); + } } }