Commit a0e7e78d authored by mikeytown2's avatar mikeytown2

Issue #1785226 by mikeytown2: fix array_merge logic in _boost_get_menu_router().

parent ca0ed210
......@@ -5183,15 +5183,16 @@ function _boost_get_menu_router($path = NULL, $get_array = NULL, $reset = FALSE)
return $menu_router[$index];
}
// Declare array keys
$router_item = array();
$router_item['page_type'] = '';
$router_item['page_id'] = '';
// Load the menu item
$item = menu_get_item($path);
if (is_array($item)) {
$router_item += $item;
$router_item = $item;
}
// Declare default array keys if not done.
$router_item['page_callback'] = empty($router_item['page_callback']) ? '' : $router_item['page_callback'];
$router_item['page_type'] = empty($router_item['page_type']) ? '' : $router_item['page_type'];
$router_item['page_id'] = empty($router_item['page_id']) ? '' : $router_item['page_id'];
// Get all args
$args = arg($path);
......
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