summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/menu.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 9619b3ea1..21067cd5c 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -1574,10 +1574,10 @@ function menu_set_active_trail($new_trail = NULL) {
$curr = FALSE;
}
else {
- // Move to the child link if it's in the active trail.
- if ($curr['below'] && $curr['link']['in_active_trail']) {
+ // Add the link if it's in the active trail, then move to the link below.
+ if ($curr['link']['in_active_trail']) {
$trail[] = $curr['link'];
- $tree = $curr['below'];
+ $tree = $curr['below'] ? $curr['below'] : array();
}
list($key, $curr) = each($tree);
}