From 13fa07dfc7f351f300ac87e881bdfdf450159e7f Mon Sep 17 00:00:00 2001 From: markjcrane Date: Tue, 8 Dec 2015 22:32:11 -0700 Subject: [PATCH] Remove the default context from one more location. --- app/dialplan_inbound/dialplan_inbound_add.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index 25dbfb37fd..bf4205d8fe 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -145,12 +145,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $dialplan_name = str_replace("/", "", $dialplan_name); //set the context - if (count($_SESSION["domains"]) > 1) { - $context = 'default'; - } - else { - $context = '$${domain_name}'; - } + $context = '$${domain_name}'; //start the atomic transaction $count = $db->exec("BEGIN;"); //returns affected rows