Update app_defaults.php

This commit is contained in:
FusionPBX
2017-01-12 23:47:44 -07:00
committed by GitHub
parent 4c83865980
commit a1e2f8f580

View File

@@ -24,11 +24,12 @@
Mark J Crane <markjcrane@fusionpbx.com>
*/
//normalize the mac address
//process this code online once
if ($domains_processed == 1) {
//normalize the mac address
$sql = "select device_uuid, device_mac_address ";
$sql .= "from v_devices ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and (device_mac_address like '%-%' or device_mac_address like '%:%') ";
$sql .= "where (device_mac_address like '%-%' or device_mac_address like '%:%') ";
$prep_statement = $db->prepare(check_sql($sql));
if ($prep_statement) {
$prep_statement->execute();
@@ -49,10 +50,6 @@
}
unset($prep_statement, $result);
}
//process this code online once
if ($domains_processed == 1) {
}
?>