- Patch 7840 by Drumm: fixed warning.

4.5.x
Dries Buytaert 2004-05-17 22:11:12 +00:00
parent e52c0f5d41
commit 25a709a1f3
2 changed files with 10 additions and 6 deletions

View File

@ -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);
}
}
}
}

View File

@ -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);
}
}
}
}