Skip to content
Snippets Groups Projects
Verified Commit f02f15ef authored by Helmo's avatar Helmo
Browse files

Fix a null value passed in by the create new forms, which lack an id.

parent 03d007bf
No related branches found
No related tags found
No related merge requests found
...@@ -148,6 +148,10 @@ class tools_sites { ...@@ -148,6 +148,10 @@ class tools_sites {
function getDomainModuleDomains($not_used_in_table = null, $selected_domain = '') { function getDomainModuleDomains($not_used_in_table = null, $selected_domain = '') {
global $app; 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"; $sql = "SELECT domain_id, domain FROM domain WHERE";
if ($not_used_in_table) { if ($not_used_in_table) {
if (strpos($not_used_in_table, 'dns') !== false) { if (strpos($not_used_in_table, 'dns') !== false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment