Index: boost.module
--- boost.module Base (BASE)
+++ boost.module Locally Modified (Based On LOCAL)
@@ -765,6 +765,7 @@
  *  Can use boost_cache_expire_router() then.
  */
 function boost_get_menu_structure($menu, $found = TRUE, $needle = '', $first = TRUE, &$found_global = FALSE, &$menu_out = array()) {
+  $structure = array();
   $found_global = FALSE;
   // Get Siblings
   foreach ($menu as $item) {
@@ -791,7 +792,7 @@
         }
       }
       boost_get_menu_structure($sub_menu, $needle, $found, FALSE, $found_global, $menu_out);
-      $structure[$item['link']['link_path']][] = $sub;
+      $structure[$item['link']['link_path']][] = $sub_menu;
       if ($item['link']['page_callback'] != '' && $found_global) {
         // Get Parent of kid
         $menu_out[] = $item['link']['link_path'];
