Index: modules/aggregator/aggregator.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/aggregator/aggregator.module,v
retrieving revision 1.383
diff -u -r1.383 aggregator.module
--- modules/aggregator/aggregator.module	3 Aug 2008 05:46:55 -0000	1.383
+++ modules/aggregator/aggregator.module	3 Aug 2008 15:26:54 -0000
@@ -375,6 +375,10 @@
     }
     else {
       db_query('DELETE FROM {aggregator_category} WHERE cid = %d', $edit['cid']);
+      if (drupal_function_exists('_block_rehash')) {
+        // Update the 'blocks' DB table.
+        _block_rehash();
+      }
       $edit['title'] = '';
       $op = 'delete';
     }
@@ -415,6 +419,10 @@
     }
     db_query('DELETE FROM {aggregator_feed} WHERE fid = %d', $edit['fid']);
     db_query('DELETE FROM {aggregator_item} WHERE fid = %d', $edit['fid']);
+    if (drupal_function_exists('_block_rehash')) {
+      // Update the 'blocks' DB table.
+      _block_rehash();
+    }
   }
   elseif (!empty($edit['title'])) {
     db_query("INSERT INTO {aggregator_feed} (title, url, refresh, block, description, image) VALUES ('%s', '%s', %d, 5, '', '')", $edit['title'], $edit['url'], $edit['refresh']);
