mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
[ticket/13740] Keep keys when sorting navigation
PHPBB3-13740
This commit is contained in:
parent
030f6da911
commit
136ec8d7e2
@ -267,10 +267,10 @@ class helper
|
||||
protected function sort_navigation_level($nav_array)
|
||||
{
|
||||
$sorted = array();
|
||||
foreach ($nav_array as $nav)
|
||||
foreach ($nav_array as $key => $nav)
|
||||
{
|
||||
$order = (isset($nav['order'])) ? $nav['order'] : 0;
|
||||
$sorted[$order][] = $nav;
|
||||
$sorted[$order][$key] = $nav;
|
||||
}
|
||||
|
||||
// Linearization of navigation array
|
||||
|
Loading…
x
Reference in New Issue
Block a user