diff --git a/core/includes/menu.inc b/core/includes/menu.inc index a8a30b6..941da80 100644 --- a/core/includes/menu.inc +++ b/core/includes/menu.inc @@ -2358,7 +2358,7 @@ function menu_set_active_trail($new_trail = NULL) { // a stripped down menu tree containing the active trail only, in case // the given menu has not been built in this request yet. $tree = menu_tree_page_data($preferred_link['menu_name'], NULL, TRUE); - list($key, $curr) = each($tree); + list(, $curr) = each($tree); } // There is no link for the current path. else { @@ -2388,7 +2388,7 @@ function menu_set_active_trail($new_trail = NULL) { } $tree = $curr['below'] ? $curr['below'] : array(); } - list($key, $curr) = each($tree); + list(, $curr) = each($tree); } // Make sure the current page is in the trail to build the page title, by // appending either the preferred link or the menu router item for the @@ -2583,7 +2583,7 @@ function menu_router_rebuild() { $transaction = db_transaction(); try { - list($menu, $masks) = menu_router_build(TRUE); + list($menu,) = menu_router_build(TRUE); _menu_navigation_links_rebuild($menu); // Clear the menu, page and block caches. menu_cache_clear_all(); @@ -2683,7 +2683,7 @@ function menu_get_router() { // Check first if we have it in memory already. $menu = _menu_router_cache(); if (empty($menu)) { - list($menu, $masks) = menu_router_build(); + list($menu, ) = menu_router_build(); } return $menu; } @@ -2898,7 +2898,7 @@ function _menu_find_router_path($link_path) { elseif (!isset($menu[$router_path])) { // Add an empty router path as a fallback. $ancestors[] = ''; - foreach ($ancestors as $key => $router_path) { + foreach ($ancestors as $router_path) { if (isset($menu[$router_path])) { // Exit the loop leaving $router_path as the first match. break; @@ -3189,7 +3189,7 @@ function _menu_router_save($menu, $masks) { $num_records = 0; - foreach ($menu as $path => $item) { + foreach ($menu as $item) { // Fill in insert object values. $insert->values(array( 'path' => $item['path'],