From 38dffebb892337beb2720d5d1aea27d9431b0ece Mon Sep 17 00:00:00 2001 From: robertgarrigos Date: Thu, 24 Oct 2024 19:50:45 +0200 Subject: [PATCH] Fixes #8 block error when deleting a feed --- aggregator.module | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/aggregator.module b/aggregator.module index 9117e8b..1a7d148 100644 --- a/aggregator.module +++ b/aggregator.module @@ -460,12 +460,12 @@ function aggregator_save_category($edit) { ->condition('cid', $edit['cid']) ->execute(); // Make sure there is no active block for this category. - if (module_exists('block')) { - db_delete('block') - ->condition('module', 'aggregator') - ->condition('delta', 'category-' . $edit['cid']) - ->execute(); - } + // if (module_exists('block')) { + // db_delete('block') + // ->condition('module', 'aggregator') + // ->condition('delta', 'category-' . $edit['cid']) + // ->execute(); + // } $edit['title'] = ''; $op = 'delete'; } @@ -524,12 +524,12 @@ function aggregator_save_feed($edit) { ->condition('fid', $edit['fid']) ->execute(); // Make sure there is no active block for this feed. - if (module_exists('block')) { - db_delete('block') - ->condition('module', 'aggregator') - ->condition('delta', 'feed-' . $edit['fid']) - ->execute(); - } + // if (module_exists('block')) { + // db_delete('block') + // ->condition('module', 'aggregator') + // ->condition('delta', 'feed-' . $edit['fid']) + // ->execute(); + // } } elseif (!empty($edit['title'])) { $edit['fid'] = db_insert('aggregator_feed')