aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/navigation.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/lib/navigation.php b/engine/lib/navigation.php
index 891527d38..16cdf9d4c 100644
--- a/engine/lib/navigation.php
+++ b/engine/lib/navigation.php
@@ -197,8 +197,9 @@ function elgg_site_menu_setup($hook, $type, $return, $params) {
$max_display_items = 5;
// the first n are shown, rest added to more list
+ // if only one item on more menu, stick it with the rest
$num_menu_items = count($return['default']);
- if ($num_menu_items > $max_display_items) {
+ if ($num_menu_items > ($max_display_items + 1)) {
$return['more'] = array_splice($return['default'], $max_display_items);
}
}