From 22c0a0a4b0d9be19ee1444f86135998145a8d682 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 24 Jun 2008 21:29:47 +0000 Subject: - Patch #170309 by pwolanin, Pasqualle, Nick Urban, naquah, keith.smith, et al: breadcrumb doesn'tt always include all active items. --- includes/menu.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes') 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); } -- cgit v1.2.3