Commit 8f09faf1 authored by mikeytown2's avatar mikeytown2

#917908 by Nax, mikeytown2: page_arguments should always be an array.

parent d98119ad
......@@ -4603,6 +4603,12 @@ function _boost_get_menu_router($path = NULL, $get_array = NULL, $reset = FALSE)
$router_item['query'] = $query;
$router_item['page_number'] = $page;
// Make sure page arguments is set and is an array
// Needed if views handles 404s
if (!is_array($router_item['page_arguments'])) {
$router_item['page_arguments'] = array($router_item['page_arguments']);
// Invoke hook_boost_menu_router($router_item)
$modules = module_implements('boost_menu_router');
// Make boosts built in hook the last one.
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