mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -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
|
@ -15,7 +15,7 @@ top_panel($user,$TAB);
|
|||
if (empty($_GET['domain'])){
|
||||
exec (VESTA_CMD."v-list-dns-domains $user json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns.html');
|
||||
|
@ -25,7 +25,7 @@ if (empty($_GET['domain'])){
|
|||
} else {
|
||||
exec (VESTA_CMD."v-list-dns-domain-records '".$user."' '".$_GET['domain']."' 'json'", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
$data = array_reverse($data, true);
|
||||
unset($output);
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_dns_rec.html');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue