Account for dialplan_detail_enabled false
This commit is contained in:
parent
c7e687512f
commit
dedafeccc8
|
|
@ -596,11 +596,11 @@
|
|||
|
||||
//combines array dialplans and dialplan details arrays to match results from the database
|
||||
public function prepare_details($database_array) {
|
||||
|
||||
$id = 0;
|
||||
foreach($database_array['dialplans'] as $row) {
|
||||
if (!empty($row['dialplan_details'])) {
|
||||
foreach($row['dialplan_details'] as $detail) {
|
||||
if ($detail['dialplan_detail_enabled'] == 'true') {
|
||||
$array[$id]['domain_uuid'] = $row['domain_uuid'];
|
||||
$array[$id]['dialplan_uuid'] = $row['dialplan_uuid'];
|
||||
$array[$id]['app_uuid'] = $row['app_uuid'];
|
||||
|
|
@ -624,6 +624,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->dialplan_details = $array;
|
||||
}
|
||||
|
||||
|
|
@ -1588,3 +1589,4 @@
|
|||
}
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue