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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

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);
}