diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-22 10:09:27 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-04-22 10:09:27 +0000 |
commit | 4095b6cf996eb6c5da7e99f7dfb5801636f1a7dd (patch) | |
tree | b344121a999c996fde24154d4d3401a335f97b7c /includes | |
parent | f818c9bee3813ed2e1d59d686b0410be51833e87 (diff) | |
download | brdo-4095b6cf996eb6c5da7e99f7dfb5801636f1a7dd.tar.gz brdo-4095b6cf996eb6c5da7e99f7dfb5801636f1a7dd.tar.bz2 |
#777150 by jpmckinney, realityloop: Fixed Strict warning on the reports screen.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/menu.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 4b5ca3aed..39f7dddad 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -860,7 +860,7 @@ function menu_get_object($type = 'node', $position = 1, $path = NULL) { * Render a menu tree based on the current path. * * The tree is expanded based on the current path and dynamic paths are also - * changed according to the defined to_arg functions (for example the 'My + * changed according to the defined to_arg functions (for example the 'My * account' link is changed from user/% to a link with the current user's uid). * * @param $menu_name @@ -2104,7 +2104,8 @@ function menu_set_active_trail($new_trail = NULL) { $found[] = $menu->menu_name; } // The $menu_names array is ordered, so take the first one that matches. - $name = current(array_intersect($menu_names, $found)); + $found_menu_names = array_intersect($menu_names, $found); + $name = current($found_menu_names); if ($name !== FALSE) { $tree = menu_tree_page_data($name); list($key, $curr) = each($tree); |