diff options
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/index.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/htdocs/index.php b/htdocs/index.php index 797f10b..4ca2c36 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -58,10 +58,12 @@ foreach($ps as $p) { ?>> <?php $menu = $config->value('menu'); -foreach($menu as $_m => $_t) { - echo " <a href=\"?page=".$_m."\" class=\"menu_entry_".$_m."\"></a>\n"; - echo " <a href=\"?page=".$_m."\" class=\"menutitle\">".$t."</a>\n"; - echo "\n"; +if(sizeof($menu)) { + foreach($menu as $_m => $_t) { + echo " <a href=\"?page=".$_m."\" class=\"menu_entry_".$_m."\"></a>\n"; + echo " <a href=\"?page=".$_m."\" class=\"menutitle\">".$t."</a>\n"; + echo "\n"; + } } ?> </div> |