aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'views/default')
-rw-r--r--views/default/navigation/site_nav.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/views/default/navigation/site_nav.php b/views/default/navigation/site_nav.php
index fd4b740b5..0cb867c5f 100644
--- a/views/default/navigation/site_nav.php
+++ b/views/default/navigation/site_nav.php
@@ -72,11 +72,14 @@ if ($more_nav_html) {
</li>";
}
-echo <<<___END
-<div id="elgg_main_nav" class="clearfloat">
- <ul class="navigation">
- $nav_html
- </ul>
-</div>
+// only display, if there are nav items to display
+if ($nav_html) {
+ echo <<<___END
+ <div id="elgg_main_nav" class="clearfloat">
+ <ul class="navigation">
+ $nav_html
+ </ul>
+ </div>
___END;
+}
?>