diff --git a/site_map.module b/site_map.module index 904e573..92292d2 100644 --- a/site_map.module +++ b/site_map.module @@ -343,11 +343,11 @@ function _site_map_books() { */ function _site_map_menus() { $output = ''; - $class = array(); $mids = array_filter(variable_get('site_map_show_menus', array())); if (!empty($mids)) { foreach ($mids as $mid) { + $class = array(); $menu = menu_load($mid); // Use menu_tree_all_data to retrieve the expanded tree. $tree = menu_tree_all_data($mid);