Commit 2edc3029 authored by Dries's avatar Dries

- Patch #1023190 by Berdir: wrong merge query in aggregator_save_item().

parent b3510563
......@@ -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();
......
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