Update dialplan.php

Use the domain array name as the row so it doesn't conflict with the row array.
This commit is contained in:
FusionPBX
2016-07-01 17:58:24 -06:00
committed by GitHub
parent dbc2a561f4
commit 70bcfcffa6

View File

@@ -319,7 +319,7 @@ include "root.php";
$this->dialplan_uuid = uuid();
$this->dialplan_name = $dialplan['extension']['@attributes']['name'];
$this->dialplan_number = $dialplan['extension']['@attributes']['number'];
$this->dialplan_context = $row['domain_name'];
$this->dialplan_context = $domain['domain_name'];
$this->dialplan_global = false;
if (strlen($dialplan['extension']['@attributes']['global']) > 0) {
if ($dialplan['extension']['@attributes']['global'] == "true") {