Update app_defaults.php

This commit is contained in:
FusionPBX 2024-08-16 14:58:12 -06:00 committed by GitHub
parent 0fef717961
commit 83efb46e8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -27,11 +27,11 @@
//process this only one time
if ($domains_processed == 1) {
//set domains with enabled status of empty or null to true
$sql = "update v_domains set domain_enabled = 'true' ";
$sql .= "where domain_enabled = '' or domain_enabled is null ";
$database->execute($sql, null);
unset($sql);
//set domain enable to true
$sql = "update v_domains set domain_enabled = 'true' ";
$sql .= "where domain_enabled is null ";
$database->execute($sql, null);
unset($sql);
}