Browse code

So herum macht das eigentlich mehr Sinn

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1828 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on04/10/2010 16:37:53
Showing1 changed files
... ...
@@ -88,9 +88,9 @@ foreach ($weighted_menuitem as $key => $menuitem)
88 88
                         $menu .= '<a href="'.$item['file'].'" class="menuitem active">'.$item['label'].'</a>'."\n";
89 89
                 else
90 90
                         $menu .= '<a href="'.$item['file'].'" class="menuitem">'.$item['label'].'</a>'."\n";
91
-                if ($key == $section || (array_key_exists($key, $submenu) && array_key_exists_r($section, $submenu[$key])))
91
+                if (isset($submenu[$key]))
92 92
                 {
93
-                        if (isset($submenu[$key]))
93
+                        if ($key == $section || (array_key_exists($key, $submenu) && array_key_exists_r($section, $submenu[$key])))
94 94
                         {
95 95
                                 $menu .= "\n";
96 96
 				foreach ($submenu[$key] as $weight => $mysub)