mirror of
https://github.com/unraid/webgui.git
synced 2026-01-23 09:59:59 -06:00
Miscellaneous corrections and optimizations
This commit is contained in:
@@ -24,7 +24,7 @@ if (empty($vms)) {
|
||||
}
|
||||
if (file_exists($cfg)) {
|
||||
$prefs = parse_ini_file($cfg); $sort = [];
|
||||
foreach ($vms as $vm) $sort[] = array_search($vm,$prefs) ?: 999;
|
||||
foreach ($vms as $vm) $sort[] = array_search($vm,$prefs) ?? 999;
|
||||
array_multisort($sort,SORT_NUMERIC,$vms);
|
||||
} else {
|
||||
natsort($vms);
|
||||
|
||||
Reference in New Issue
Block a user