Skip to content

Commit

Permalink
Fixes backdrop-contrib#8 block error when deleting a feed
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgarrigos committed Oct 24, 2024
1 parent 5e7469c commit 599b149
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions aggregator.module
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 599b149

Please sign in to comment.