Browse Source

BugFix-sub item rendering (#2450)

Fix for $mod_li and $mod_a_li not being blanked/reset foreach menu
parent item rendered, causing the first menu with sub items to force sub
item rendering for all remaining menu items
Mafoo 8 years ago
parent
commit
4e5144ed66
1 changed files with 2 additions and 0 deletions
  1. 2 0
      themes/default/template.php

+ 2 - 0
themes/default/template.php

@@ -454,6 +454,8 @@
 						<ul class="nav navbar-nav">
 							<?php
 							foreach ($menu_array as $index_main => $menu_parent) {
+								$mod_li = "";
+								$mod_a_1 = "";
 								$submenu = false;
 								if (is_array($menu_parent['menu_items']) && sizeof($menu_parent['menu_items']) > 0) {
 									$mod_li = "class='dropdown' ";