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 6955fa0a43
commit 491a837d71
1 changed files with 1 additions and 1 deletions

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") {