Index: modules/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment.module,v
retrieving revision 1.434
diff -u -r1.434 comment.module
--- modules/comment.module	22 Feb 2006 19:02:58 -0000	1.434
+++ modules/comment.module	27 Feb 2006 08:22:25 -0000
@@ -165,7 +165,12 @@
   else if ($op == 'view' && user_access('access comments')) {
     $block['subject'] = t('Recent comments');
     $block['content'] = theme('comment_block');
-    return $block;
+    if ($block['content']) {
+      return $block;
+    }
+    else {
+      return NULL;
+    }
   }
 }
 
@@ -175,7 +180,12 @@
   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);
+  }
+  else {
+    return NULL;
+  }
 }
 
 /**
