diff --git a/modules/aggregator.module b/modules/aggregator.module index 9e8b9895510dd87eb6fe48c52552b0f34af5b04f..a6e2f34a8e0a5512f15b882b0433f48a0c93545d 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -209,7 +209,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { } } else if ($op == 'configure') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); if ($type == 'category') { $value = db_result(db_query('SELECT block FROM {aggregator_category} WHERE cid = %d', $id)); } @@ -221,7 +221,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { return $output; } else if ($op == 'save') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); if ($type == 'category') { $value = db_query('UPDATE {aggregator_category} SET block = %d WHERE cid = %d', $edit['block'], $id); } @@ -230,7 +230,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { } } else if ($op == 'view') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); switch ($type) { case 'feed': if ($feed = db_fetch_object(db_query('SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d', $id))) { diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 9e8b9895510dd87eb6fe48c52552b0f34af5b04f..a6e2f34a8e0a5512f15b882b0433f48a0c93545d 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -209,7 +209,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { } } else if ($op == 'configure') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); if ($type == 'category') { $value = db_result(db_query('SELECT block FROM {aggregator_category} WHERE cid = %d', $id)); } @@ -221,7 +221,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { return $output; } else if ($op == 'save') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); if ($type == 'category') { $value = db_query('UPDATE {aggregator_category} SET block = %d WHERE cid = %d', $edit['block'], $id); } @@ -230,7 +230,7 @@ function aggregator_block($op, $delta = 0, $edit = array()) { } } else if ($op == 'view') { - list($type, $id) = split(':', $delta); + list($type, $id) = explode('-', $delta); switch ($type) { case 'feed': if ($feed = db_fetch_object(db_query('SELECT fid, title, block FROM {aggregator_feed} WHERE fid = %d', $id))) {