Update app_defaults.php
This commit is contained in:
parent
d0aa349c04
commit
595d996ac7
|
|
@ -26,15 +26,17 @@
|
|||
|
||||
//process this only one time
|
||||
if ($domains_processed == 1) {
|
||||
//add the access control list to the database
|
||||
|
||||
//select ivr menus with an empty context
|
||||
$sql = "select * from v_ivr_menus where ivr_menu_context is null ";
|
||||
$ivr_menus = $database->select($sql, null, 'all');
|
||||
if (is_array($ivr_menus)) {
|
||||
//get the domain list
|
||||
$sql = "select * from v_domains ";
|
||||
$database = new database;
|
||||
$domains = $database->select($sql, null, 'all');
|
||||
|
||||
//add the access control list to the database
|
||||
$sql = "select * from v_ivr_menus where ivr_menu_context is null ";
|
||||
$ivr_menus = $database->select($sql, null, 'all');
|
||||
if (is_array($ivr_menus)) {
|
||||
//update the ivr menu context
|
||||
foreach ($ivr_menus as $row) {
|
||||
foreach ($domains as $domain) {
|
||||
if ($row['domain_uuid'] == $domain['domain_uuid']) {
|
||||
|
|
@ -48,6 +50,7 @@ if ($domains_processed == 1) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue