Update app_defaults.php
This commit is contained in:
parent
732c08ca2b
commit
93cf491c2e
|
|
@ -24,11 +24,12 @@
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//process this code online once
|
||||||
|
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 ";
|
||||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
$sql .= "where (device_mac_address like '%-%' or device_mac_address like '%:%') ";
|
||||||
$sql .= "and (device_mac_address like '%-%' or device_mac_address like '%:%') ";
|
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
|
|
@ -49,5 +50,6 @@
|
||||||
}
|
}
|
||||||
unset($prep_statement, $result);
|
unset($prep_statement, $result);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue