Skip to content

Commit d0d2afa

Browse files
author
Marius Burkard
committed
- Sort websites, mailboxes and databases on dashboard, fixes #4692
1 parent 33a53e0 commit d0d2afa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/lib/classes/quota_lib.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function get_quota_data($clientid = null, $readable = true) {
1414
//print_r($monitor_data);
1515

1616
// select all websites or websites belonging to client
17-
$sites = $app->db->queryAllRecords("SELECT * FROM web_domain WHERE active = 'y' AND type = 'vhost'".(($clientid != null)?" AND sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)":''), $clientid);
17+
$sites = $app->db->queryAllRecords("SELECT * FROM web_domain WHERE active = 'y' AND type = 'vhost'".(($clientid != null)?" AND sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)":'') . " ORDER BY domain", $clientid);
1818

1919
//print_r($sites);
2020
if(is_array($sites) && !empty($sites)){
@@ -237,7 +237,7 @@ public function get_mailquota_data($clientid = null, $readable = true) {
237237
//print_r($monitor_data);
238238

239239
// select all email accounts or email accounts belonging to client
240-
$emails = $app->db->queryAllRecords("SELECT * FROM mail_user".(($clientid != null)? " WHERE sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)" : ''), $clientid);
240+
$emails = $app->db->queryAllRecords("SELECT * FROM mail_user".(($clientid != null)? " WHERE sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)" : '') . " ORDER BY email", $clientid);
241241

242242
//print_r($emails);
243243
if(is_array($emails) && !empty($emails)){
@@ -301,7 +301,7 @@ public function get_databasequota_data($clientid = null, $readable = true) {
301301
//print_r($monitor_data);
302302

303303
// select all databases belonging to client
304-
$databases = $app->db->queryAllRecords("SELECT * FROM web_database".(($clientid != null)? " WHERE sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)" : ''), $clientid);
304+
$databases = $app->db->queryAllRecords("SELECT * FROM web_database".(($clientid != null)? " WHERE sys_groupid = (SELECT default_group FROM sys_user WHERE client_id=?)" : '') . " ORDER BY database_name", $clientid);
305305

306306
//print_r($databases);
307307
if(is_array($databases) && !empty($databases)){

0 commit comments

Comments
 (0)