Skip to content

Commit f02f15e

Browse files
committed
Fix a null value passed in by the create new forms, which lack an id.
1 parent 03d007b commit f02f15e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interface/lib/classes/tools_sites.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ function convertClientName($name){
148148
function getDomainModuleDomains($not_used_in_table = null, $selected_domain = '') {
149149
global $app;
150150

151+
// Fix a null value passed in by the create new forms, which lack an id.
152+
if ($selected_domain == null) {
153+
$selected_domain = '';
154+
}
151155
$sql = "SELECT domain_id, domain FROM domain WHERE";
152156
if ($not_used_in_table) {
153157
if (strpos($not_used_in_table, 'dns') !== false) {

0 commit comments

Comments
 (0)