From c1952afb94ae4d0711f4fdf2a90f4e9aebc2723c Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Mon, 20 Mar 2023 11:12:30 +0100 Subject: [PATCH] dont sort indexed array as the keys get lost; fixes #1114 Signed-off-by: Michael Kaufmann --- customer_ftp.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/customer_ftp.php b/customer_ftp.php index d5f3bd0f..5fd78fe2 100644 --- a/customer_ftp.php +++ b/customer_ftp.php @@ -119,7 +119,7 @@ if ($page == 'overview' || $page == 'accounts') { if (Settings::Get('customer.ftpatdomain') == '1') { $domainlist = []; $result_domains_stmt = Database::prepare("SELECT `domain` FROM `" . TABLE_PANEL_DOMAINS . "` - WHERE `customerid`= :customerid"); + WHERE `customerid`= :customerid ORDER BY `domain` ASC"); Database::pexecute($result_domains_stmt, [ "customerid" => $userinfo['customerid'] ]); @@ -127,7 +127,6 @@ if ($page == 'overview' || $page == 'accounts') { while ($row_domain = $result_domains_stmt->fetch(PDO::FETCH_ASSOC)) { $domainlist[$row_domain['domain']] = $idna_convert->decode($row_domain['domain']); } - sort($domainlist); } if (Settings::Get('system.allow_customer_shell') == '1') {