Commit 25a709a1 authored by Dries's avatar Dries

- Patch 7840 by Drumm: fixed warning.

parent e52c0f5d
......@@ -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);
}
}
}
}
......
......@@ -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);
}
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment