Commit ca9aa560 authored by Dries's avatar Dries

- Patch #40816 by Morbus: fixed bug with assigning news item the correct category.

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