Commit 25c035fd authored by solideogloria's avatar solideogloria Committed by joelpittet

Issue #3186377 by solideogloria: Notice: Trying to access array offset on...

Issue #3186377 by solideogloria: Notice: Trying to access array offset on value of type null in menu_tree_add_active_path()
parent a19c47f3
......@@ -620,6 +620,11 @@ function menu_block_set_title($item = NULL) {
* The menu tree.
*/
function menu_tree_add_active_path(array &$tree) {
// Return if there are no menu items.
if (!$tree) {
return;
}
// Grab any menu item to find the menu_name for this tree.
$menu_item = current($tree);
$tree_with_trail = menu_tree_page_data($menu_item['link']['menu_name']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment