summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/aggregator/aggregator.processor.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/aggregator/aggregator.processor.inc b/modules/aggregator/aggregator.processor.inc
index 91b440c7c..6eb2c662f 100644
--- a/modules/aggregator/aggregator.processor.inc
+++ b/modules/aggregator/aggregator.processor.inc
@@ -162,8 +162,8 @@ function aggregator_save_item($edit) {
$result = db_query('SELECT cid FROM {aggregator_category_feed} WHERE fid = :fid', array(':fid' => $edit['fid']));
foreach ($result as $category) {
db_merge('aggregator_category_item')
- ->key(array('iid' => $edit['iid']))
- ->fields(array(
+ ->key(array(
+ 'iid' => $edit['iid'],
'cid' => $category->cid,
))
->execute();