diff --git a/interface/lib/classes/tools_sites.inc.php b/interface/lib/classes/tools_sites.inc.php index 94c6d787875c28bec6d2b011c07454912f0eb036..b2881f57cc7e28a96554b8f585d17873100035fe 100644 --- a/interface/lib/classes/tools_sites.inc.php +++ b/interface/lib/classes/tools_sites.inc.php @@ -157,7 +157,7 @@ class tools_sites { $field = "domain"; $select = $field; } - $sql .= " domain NOT IN (SELECT $select FROM ?? WHERE $field = ?) AND"; + $sql .= " domain NOT IN (SELECT $select FROM ?? WHERE $field != ?) AND"; } if ($_SESSION["s"]["user"]["typ"] == 'admin') { $sql .= " 1"; diff --git a/interface/web/sites/web_childdomain_edit.php b/interface/web/sites/web_childdomain_edit.php index 2377ad288acf3e353e2bc7e5c288ed43c826fe12..465356402bbb09d8cddfd5f3126dff2f7bd172ed 100644 --- a/interface/web/sites/web_childdomain_edit.php +++ b/interface/web/sites/web_childdomain_edit.php @@ -105,7 +105,7 @@ class page_action extends tform_actions { /* * The domain-module is in use. */ - $domains = $app->tools_sites->getDomainModuleDomains($this->_vhostdomain_type == 'subdomain' ? null : "web_domain", $this->dataRecord["domain"]); + $domains = $app->tools_sites->getDomainModuleDomains($this->_vhostdomain_type == 'subdomain' ? null : "web_domain"); $domain_select = ''; $selected_domain = ''; if(is_array($domains) && sizeof($domains) > 0) {