mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
preserve keys in array_reverse()
This commit is contained in:
parent
32e2b0aa8f
commit
ee1fb98337
11 changed files with 17 additions and 17 deletions
|
@ -16,13 +16,13 @@ if ($user == 'admin') {
|
|||
if (empty($_GET['user'])) {
|
||||
exec (VESTA_CMD."v-list-users-stats json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
} else {
|
||||
$v_user = escapeshellarg($_GET['user']);
|
||||
exec (VESTA_CMD."v-list-user-stats $v_user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ if ($user == 'admin') {
|
|||
} else {
|
||||
exec (VESTA_CMD."v-list-user-stats $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_stats.html');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue