From ca9aa560f2bdf49f48b8e20e5b6c9510e938e655 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 14 Dec 2005 14:03:05 +0000 Subject: - Patch #40816 by Morbus: fixed bug with assigning news item the correct category. --- modules/aggregator.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/aggregator.module') 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); } } -- cgit v1.2.3