Browse code

sort domains alphabetically for Domains -> Mail-Verwaltung

Bernd Wurst authored on 22/03/2012 15:21:59
Showing 1 changed files
... ...
@@ -437,7 +437,7 @@ function domainsettings($only_domain=NULL) {
437 437
   $subdomains = array();
438 438
 
439 439
   // Domains
440
-  $result = db_query("SELECT d.id, CONCAT_WS('.',d.domainname,d.tld) AS name, d.mail, m.id AS m_id, v.id AS v_id FROM kundendaten.domains AS d LEFT JOIN mail.virtual_mail_domains AS v ON (d.id=v.domain AND v.hostname IS NULL) LEFT JOIN mail.custom_mappings AS m ON (d.id=m.domain AND m.subdomain IS NULL) WHERE d.useraccount={$uid} OR m.uid={$uid};");
440
+  $result = db_query("SELECT d.id, CONCAT_WS('.',d.domainname,d.tld) AS name, d.mail, m.id AS m_id, v.id AS v_id FROM kundendaten.domains AS d LEFT JOIN mail.virtual_mail_domains AS v ON (d.id=v.domain AND v.hostname IS NULL) LEFT JOIN mail.custom_mappings AS m ON (d.id=m.domain AND m.subdomain IS NULL) WHERE d.useraccount={$uid} OR m.uid={$uid} ORDER BY CONCAT_WS('.',d.domainname,d.tld);");
441 441
 
442 442
   while ($mydom = mysql_fetch_assoc($result)) {
443 443
     if (! array_key_exists($mydom['id'], $domains)) {