diff --git a/core/includes/menu.inc b/core/includes/menu.inc
index fb11da2..2ed3645 100644
--- a/core/includes/menu.inc
+++ b/core/includes/menu.inc
@@ -1881,8 +1881,6 @@ function menu_local_tasks($level = 0) {
 
   if (!isset($data)) {
     $data = array();
-    // Set defaults in case there are no actions or tabs.
-    $actions = $empty['actions'];
     $tabs = array();
 
     $router_item = menu_get_item();
@@ -2002,7 +2000,6 @@ function menu_local_tasks($level = 0) {
     // Find all tabs at the same level or above the current one.
     $parent = $router_item['tab_parent'];
     $path = $router_item['path'];
-    $current = $router_item;
     $depth = 1000;
     while (isset($children[$parent])) {
       $tabs_current = array();
@@ -2365,7 +2362,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 {
@@ -2395,7 +2392,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
@@ -2641,7 +2638,7 @@ function menu_router_rebuild() {
   $transaction = db_transaction();
 
   try {
-    list($menu, $masks) = menu_router_build(TRUE);
+    $menu = reset(menu_router_build(TRUE));
     _menu_navigation_links_rebuild($menu);
     // Clear the menu, page and block caches.
     menu_cache_clear_all();
@@ -2751,7 +2748,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();
+    $menu = reset(menu_router_build());
   }
   return $menu;
 }
@@ -2967,7 +2964,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;
@@ -3258,7 +3255,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'],
