So herum macht das eigentlich mehr Sinn
bernd

bernd commited on 2010-10-04 16:37:53
Zeige 1 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1828 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -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])))
92
-                {
93 91
                 if (isset($submenu[$key]))
92
+                {
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) 
97 97