diff --git modules/aggregator/aggregator.module modules/aggregator/aggregator.module
index 3b31d4e..45c140b 100644
--- modules/aggregator/aggregator.module
+++ modules/aggregator/aggregator.module
@@ -413,8 +413,10 @@ function aggregator_block_view($delta = '') {
         break;
     }
     $items = array();
-    foreach ($result as $item) {
-      $items[] = theme('aggregator_block_item', array('item' => $item));
+      if (isset($result)) {
+      foreach ($result as $item) {
+        $items[] = theme('aggregator_block_item', array('item' => $item));
+      }
     }
 
     // Only display the block if there are items to show.
