--- og_aggregator.module  2009-11-12 21:16:53.000000000 +1100
+++ ../og_aggregator.module 2009-11-17 12:17:45.000000000 +1100
@@ -185,16 +185,23 @@
       if ($groupnode = og_get_group_context()) {
         $block['subject'] = t('Aggregator');
         $result = db_query_range("SELECT i.* FROM {og_aggregator_item} i JOIN {og_aggregator_feed} f ON i.fid = f.fid WHERE f.nid = %d ORDER BY i.timestamp desc", $groupnode->nid, 0, variable_get('og_aggregator_block_items_number',10));
-        $block['content'] = '<div class="more-link">'.
+        if($result){
+          $items = array();
+          while ($item = db_fetch_object($result)) {
+            $items[] = theme('og_aggregator_block_item', $item);
+          }
+          if(!empty($items)){
+            $block['content'] = theme('item_list', $items);
+            $block['content'] .= '<div class="more-link">'.
 l(t('more'), "node/$groupnode->nid/aggregator/feed", array('title' => t('View this feed\'s recent news.'))) .'</div>';
+
+          }
+        }
       }
-      $items = array();
-      while ($item = db_fetch_object($result)) {
-        $items[] = theme('og_aggregator_block_item', $item);
-      }
-      $block['content'] = theme('item_list', $items) . $block['content'];
     }
-    return $block;
+    if(isset($block)){
+      return $block;
+    }
   }
 }