Commit cfe44ef8 authored by Steven Wittens's avatar Steven Wittens
Browse files

#100859: Fix aggregator categorization form

parent a5d5c6aa
_<?php
<?php
// $Id$
/**
......
......@@ -1061,6 +1061,7 @@ function aggregator_page_list($sql, $header, $categorize) {
$categories = array();
$done = FALSE;
$form['items'] = array();
$form['categories'] = array('#tree' => TRUE);
while ($item = db_fetch_object($result)) {
$form['items'][$item->iid] = array('#value' => theme('aggregator_page_item', $item));
$form['categories'][$item->iid] = array();
......@@ -1137,7 +1138,7 @@ function aggregator_page_list_validate($form_id, &$form) {
}
function aggregator_page_list_submit($form_id, $form_values) {
foreach ($form_values as $iid => $selection) {
foreach ($form_values['categories'] as $iid => $selection) {
db_query('DELETE FROM {aggregator_category_item} WHERE iid = %d', $iid);
foreach ($selection as $cid) {
if ($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