summaryrefslogtreecommitdiff
path: root/modules/aggregator.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/aggregator.module')
-rw-r--r--modules/aggregator.module8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module
index 62e131a78..0377196c9 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -583,9 +583,11 @@ function aggregator_save_feed($edit) {
}
if ($edit['title']) {
// the feed is being saved, save the categories as well
- foreach ($edit['category'] as $cid => $checked) {
- if ($checked) {
- db_query('INSERT INTO {aggregator_category_feed} (fid, cid) VALUES (%d, %d)', $edit['fid'], $cid);
+ if ($edit['category']) {
+ foreach ($edit['category'] as $cid => $checked) {
+ if ($checked) {
+ db_query('INSERT INTO {aggregator_category_feed} (fid, cid) VALUES (%d, %d)', $edit['fid'], $cid);
+ }
}
}
}