Subdomains nur auslesen wo es sinn macht
bernd

bernd commited on 2009-01-14 15:28:28
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1217 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -278,7 +278,7 @@ function domainsettings($only_domain=NULL) {
278 278
   }      
279 279
 
280 280
   // Subdomains
281
-  $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, IF(ISNULL(v.hostname),m.subdomain,v.hostname) AS hostname FROM kundendaten.domains AS d LEFT JOIN mail.virtual_mail_domains AS v ON (d.id=v.domain AND v.hostname IS NOT NULL) LEFT JOIN mail.custom_mappings AS m ON (d.id=m.domain AND m.subdomain IS NOT NULL) WHERE d.useraccount={$uid} OR m.uid={$uid};");
281
+  $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, IF(ISNULL(v.hostname),m.subdomain,v.hostname) AS hostname FROM kundendaten.domains AS d LEFT JOIN mail.virtual_mail_domains AS v ON (d.id=v.domain AND v.hostname IS NOT NULL) LEFT JOIN mail.custom_mappings AS m ON (d.id=m.domain AND m.subdomain IS NOT NULL) WHERE (m.id IS NOT NULL OR v.id IS NOT NULL) AND d.useraccount={$uid} OR m.uid={$uid};");
282 282
   while ($mydom = mysql_fetch_assoc($result)) {
283 283
     if (! array_key_exists($mydom['id'], $subdomains))
284 284
       $subdomains[$mydom['id']] = array();
285 285