diff --git a/interface/lib/classes/tools_sites.inc.php b/interface/lib/classes/tools_sites.inc.php index 149a9fb67a622036c25b2a4c51437859eeb824bc..4ff2b4c75c142c19d450b756fcc6f49fd3ba24b9 100644 --- a/interface/lib/classes/tools_sites.inc.php +++ b/interface/lib/classes/tools_sites.inc.php @@ -148,6 +148,10 @@ class tools_sites { function getDomainModuleDomains($not_used_in_table = null, $selected_domain = '') { global $app; + // Fix a null value passed in by the create new forms, which lack an id. + if ($selected_domain == null) { + $selected_domain = ''; + } $sql = "SELECT domain_id, domain FROM domain WHERE"; if ($not_used_in_table) { if (strpos($not_used_in_table, 'dns') !== false) {