Update app_defaults.php

This commit is contained in:
FusionPBX 2017-11-13 23:41:02 -07:00 committed by GitHub
parent a568b15742
commit 4fbce22f1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -26,6 +26,7 @@
//process this code online once //process this code online once
if ($domains_processed == 1) { if ($domains_processed == 1) {
//normalize the mac address //normalize the mac address
$sql = "select device_uuid, device_mac_address "; $sql = "select device_uuid, device_mac_address ";
$sql .= "from v_devices "; $sql .= "from v_devices ";
@ -50,6 +51,19 @@ if ($domains_processed == 1) {
} }
unset($prep_statement, $result); unset($prep_statement, $result);
} }
//update the default settings
$sql = "update v_default_settings set ";
$sql .= "default_setting_value = 'true', ";
$sql .= "default_setting_name = 'boolean', ";
$sql .= "default_setting_enabled = 'true' ";
$sql .= "where default_setting_subcategory = 'http_domain_filter' ";
$sql .= "and default_setting_name = 'text' ";
$sql .= "and default_setting_value = 'false' ";
$sql .= "and default_setting_enabled = 'false' ";
$db->exec($sql);
unset($sql);
} }
?> ?>