summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/aggregator.module2
-rw-r--r--modules/aggregator/aggregator.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module
index 7e2ed4f19..2e4c4c607 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -729,7 +729,7 @@ function aggregator_save_feed($edit) {
if ($edit['title']) {
// the feed is being saved, save the categories as well
if ($edit['category']) {
- foreach ($edit['category'] as $cid) {
+ foreach ($edit['category'] as $cid => $value) {
db_query('INSERT INTO {aggregator_category_feed} (fid, cid) VALUES (%d, %d)', $edit['fid'], $cid);
}
}
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index 7e2ed4f19..2e4c4c607 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -729,7 +729,7 @@ function aggregator_save_feed($edit) {
if ($edit['title']) {
// the feed is being saved, save the categories as well
if ($edit['category']) {
- foreach ($edit['category'] as $cid) {
+ foreach ($edit['category'] as $cid => $value) {
db_query('INSERT INTO {aggregator_category_feed} (fid, cid) VALUES (%d, %d)', $edit['fid'], $cid);
}
}