Commit 5790f436 authored by Steven Wittens's avatar Steven Wittens

#109074: Avoid random segfaults in _menu_sort()

parent 12fab407
......@@ -1013,8 +1013,8 @@ function _menu_get_active_trail_in_submenu($pid) {
function _menu_sort($a, $b) {
$menu = menu_get_menu();
$a = &$menu['items'][$a];
$b = &$menu['items'][$b];
$a = $menu['items'][$a];
$b = $menu['items'][$b];
if ($a['weight'] < $b['weight']) {
return -1;
......
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