diff --git a/templates/menu.php b/templates/menu.php
index 0788a409..da68e8ef 100644
--- a/templates/menu.php
+++ b/templates/menu.php
@@ -1,8 +1,8 @@
$title$submenu";
- return "$title$submenu";
+ if ($submenu != "") $submenu = "";
+ return "$title$submenu";
}
authentication_has_role('global-admin');
@@ -10,15 +10,15 @@ authentication_has_role('global-admin');
echo "\n";
print "
"; # TODO
if (authentication_has_role('global-admin')) {
- $motd_file = "motd-admin.txt";
+ $motd_file = "motd-admin.txt";
} else {
- $motd_file = "motd.txt";
+ $motd_file = "motd.txt";
}
if (file_exists (realpath ($motd_file)))
{
- print "\n";
- include ($motd_file);
- print "
";
+ print "\n";
+ include ($motd_file);
+ print "
";
}
@@ -95,15 +95,15 @@ if (file_exists (realpath ($motd_file)))
?>