Skip to content
Snippets Groups Projects
Commit 8f80ce03 authored by Lars Schröter's avatar Lars Schröter Committed by Dave Reid
Browse files

Issue #2499733 by osopolar, jastraat, joelpittet: Fixed PHP notices with menu...

Issue #2499733 by osopolar, jastraat, joelpittet: Fixed PHP notices with menu block configurations that do not have the new "depth_relative" value defined yet.
parent 10e01f42
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,7 @@ function menu_tree_block_data(array &$config) {
if ($config['expanded'] || $config['parent_mlid']) {
// Get the full, un-pruned tree.
if ($config['parent_mlid'] || $config['depth_relative']) {
if ($config['parent_mlid'] || !empty($config['depth_relative'])) {
$tree = menu_tree_all_data($config['menu_name']);
}
else {
......@@ -357,7 +357,7 @@ function menu_tree_block_data(array &$config) {
menu_tree_add_active_path($tree);
}
else {
if ($config['depth_relative']) {
if (!empty($config['depth_relative'])) {
// Get the tree pruned for just the active trail.
$tree = menu_tree_page_data($config['menu_name']);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment