diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-02 22:05:22 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-02 22:05:22 +0000 |
commit | 3e22d8bbe80e3d405525a148b22d2734feed5b76 (patch) | |
tree | 1828dd997d369b1d3e866c2b785583d65d80e8e9 /views/default | |
parent | 3ea25a4f5efe9f5de5baf58a35d73850b5ad37db (diff) | |
download | elgg-3e22d8bbe80e3d405525a148b22d2734feed5b76.tar.gz elgg-3e22d8bbe80e3d405525a148b22d2734feed5b76.tar.bz2 |
Fixed the empty nav item entries when automatically building menu.
git-svn-id: http://code.elgg.org/elgg/trunk@5587 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r-- | views/default/navigation/site_nav.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/default/navigation/site_nav.php b/views/default/navigation/site_nav.php index 1f97ce617..fd4b740b5 100644 --- a/views/default/navigation/site_nav.php +++ b/views/default/navigation/site_nav.php @@ -35,6 +35,9 @@ if ($featured) { } } elseif ($more) { for ($i=0; $i<6; $i++) { + if (!array_key_exists($i, $more)) { + break; + } $info = $more[$i]; $selected = ($info->value->context == $context) ? 'class="selected"' : ''; |