diff --git a/core/modules/aggregator/aggregator.module b/core/modules/aggregator/aggregator.module index 3aa544c..43f3210 100644 --- a/core/modules/aggregator/aggregator.module +++ b/core/modules/aggregator/aggregator.module @@ -354,7 +354,7 @@ function aggregator_menu_local_tasks(&$data, $router_item, $root_path) { } // Add edit link to 'taxonomy/term/*/edit' // on pages that start with 'aggregator/categories/%'. - if (strpos($root_path, 'aggregator/categories/%') === 0 && $term = reset($router_item['page_arguments'])) { + if (strpos($root_path, 'aggregator/categories/%') === 0 && $term = array_pop($router_item['page_arguments'])) { $item = menu_get_item('taxonomy/term/' . $term->id() . '/edit'); if ($item['access']) { $data['tabs'][0][] = array(