Update app_defaults.php

This commit is contained in:
FusionPBX
2019-07-25 08:51:37 -06:00
committed by GitHub
parent 964129ea3f
commit 7e1a9d0424

View File

@@ -28,8 +28,10 @@
if ($domains_processed == 1) {
//set domains with enabled status of empty or null to true
$sql = "update v_domains set domain_enabled = 'true' where domain_enabled = '' or domain_enabled is null";
$db->exec(check_sql($sql));
$sql = "update v_domains set domain_enabled = 'true' ";
$sql .= "where domain_enabled = '' or domain_enabled is null ";
$database = new database;
$database->execute($sql, null);
unset($sql);
}