]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed the empty nav item entries when automatically building menu.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 2 Apr 2010 22:05:22 +0000 (22:05 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 2 Apr 2010 22:05:22 +0000 (22:05 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5587 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/navigation/site_nav.php

index 1f97ce6170455d9ed8cc70a5093cbd9f87c4dd8b..fd4b740b515b8cb4cc105b93d77bf4aee92bcc05 100644 (file)
@@ -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"' : '';