From 3e22d8bbe80e3d405525a148b22d2734feed5b76 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 2 Apr 2010 22:05:22 +0000 Subject: 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 --- views/default/navigation/site_nav.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'views/default/navigation/site_nav.php') 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"' : ''; -- cgit v1.2.3