Error fixes
This commit is contained in:
parent
20237195f2
commit
abb711e323
|
@ -1466,12 +1466,11 @@ class Tree {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$rootIDs = $this->rootID;
|
$servers = metaconsole_get_servers();
|
||||||
|
|
||||||
$item_list = array();
|
$item_list = array();
|
||||||
foreach ($rootIDs as $serverID => $rootID) {
|
foreach ($servers as $server) {
|
||||||
$this->rootID = $rootID;
|
$items = $this->getItems($server['id']);
|
||||||
$items = $this->getItems($serverID);
|
|
||||||
|
|
||||||
// Build the group hierarchy
|
// Build the group hierarchy
|
||||||
$processed_items = array();
|
$processed_items = array();
|
||||||
|
@ -1481,7 +1480,7 @@ class Tree {
|
||||||
}
|
}
|
||||||
$item_list += $processed_items;
|
$item_list += $processed_items;
|
||||||
}
|
}
|
||||||
$this->rootID = $rootIDs;
|
|
||||||
if (!empty($item_list))
|
if (!empty($item_list))
|
||||||
usort($item_list, "cmpSortNames");
|
usort($item_list, "cmpSortNames");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue