diff --git includes/menu.inc includes/menu.inc index 47d4941..c9fd51e 100644 --- includes/menu.inc +++ includes/menu.inc @@ -891,7 +891,7 @@ function _menu_link_translate(&$item, $translate = FALSE) { _menu_check_access($item, $map); } // For performance, don't localize a link the user can't access. - if ($item['access']) { + if (!empty($item['access'])) { _menu_item_localize($item, $map, TRUE); } } @@ -1424,7 +1424,7 @@ function _menu_tree_check_access(&$tree) { foreach ($tree as $key => $v) { $item = &$tree[$key]['link']; _menu_link_translate($item); - if ($item['access'] || ($item['in_active_trail'] && strpos($item['href'], '%') !== FALSE)) { + if (!empty($item['access']) || ($item['in_active_trail'] && strpos($item['href'], '%') !== FALSE)) { if ($tree[$key]['below']) { _menu_tree_check_access($tree[$key]['below']); }