1
0
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:
Mate Bartus 2015-07-21 15:53:26 +02:00
parent 030f6da911
commit 136ec8d7e2

View File

@ -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