Commit 3d5f5598 authored by davereid's avatar davereid Committed by Dave Reid

Issue #2421645 by Dave Reid: Fixed PHP Recoverable fatal error: Argument 3...

Issue #2421645 by Dave Reid: Fixed PHP Recoverable fatal error: Argument 3 passed to menu_tree_prune_tree() must be of the type array, boolean given.
parent 2274415c
......@@ -372,6 +372,13 @@ function menu_tree_block_data(array &$config) {
if ($config['level'] > 1 || $config['parent_mlid']) {
if ($config['parent_mlid']) {
$parent_item = menu_link_load($config['parent_mlid']);
if (!$parent_item) {
watchdog('menu_block', "Menu block @delta is set to use parent menu link @plid but the menu link was not loadable or does not exist.", array(
'@delta' => $config['delta'],
'@plid' => $config['parent_mlid'],
), WATCHDOG_ERROR);
$parent_item = NULL;
}
menu_tree_prune_tree($tree, $config['level'], $parent_item);
}
else {
......
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