diff options
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index ee29f3a89..41abf8595 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -178,7 +178,9 @@ function theme_comment_block() { while ($comment = db_fetch_object($result)) { $items[] = l($comment->subject, 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid) .'<br />'. t('@time ago', array('@time' => format_interval(time() - $comment->timestamp))); } - return theme('item_list', $items); + if ($items) { + return theme('item_list', $items); + } } /** |