summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-24 21:29:47 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-24 21:29:47 +0000
commit22c0a0a4b0d9be19ee1444f86135998145a8d682 (patch)
treedbcd0791d25d0db012db537b1d205a606d3d9eb2 /includes
parent45ef7ac58121b6f80334daa3499299531c1bf067 (diff)
downloadbrdo-22c0a0a4b0d9be19ee1444f86135998145a8d682.tar.gz
brdo-22c0a0a4b0d9be19ee1444f86135998145a8d682.tar.bz2
- Patch #170309 by pwolanin, Pasqualle, Nick Urban, naquah, keith.smith, et al: breadcrumb doesn'tt always include all active items.
Diffstat (limited to 'includes')
-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);
}