diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-03 17:04:19 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-03 17:04:19 +0000 |
commit | 9e89cf5a41c31d085a7ea2ac38f55ab286cd260f (patch) | |
tree | d36b9910dcaa5e8954939f790e03b9fb388ab4e9 /views | |
parent | a2538127a036d7be0c5ce80ea196878d36be2686 (diff) | |
download | elgg-9e89cf5a41c31d085a7ea2ac38f55ab286cd260f.tar.gz elgg-9e89cf5a41c31d085a7ea2ac38f55ab286cd260f.tar.bz2 |
only display navigation if there are registered nav items - cannot have ul element without li elements
git-svn-id: http://code.elgg.org/elgg/trunk@5600 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views')
-rw-r--r-- | views/default/navigation/site_nav.php | 15 |
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; +} ?> |