From a940f9d3cb059fd7185ff6c4f1f7edea7aa7ebef Mon Sep 17 00:00:00 2001 From: markjcrane Date: Sun, 20 Dec 2015 01:46:30 -0700 Subject: [PATCH] Add dialplan domain_uuid is null. --- app/dialplan/resources/classes/dialplan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dialplan/resources/classes/dialplan.php b/app/dialplan/resources/classes/dialplan.php index e2819db5fe..35848c2353 100644 --- a/app/dialplan/resources/classes/dialplan.php +++ b/app/dialplan/resources/classes/dialplan.php @@ -218,7 +218,7 @@ include "root.php"; private function app_uuid_exists() { global $db; $sql = "select count(*) as num_rows from v_dialplans "; - $sql .= "where domain_uuid = '".$this->domain_uuid."' "; + $sql .= "where (domain_uuid = '".$this->domain_uuid."' or domain_uuid is null) "; $sql .= "and app_uuid = '".$this->app_uuid."' "; $prep_statement = $db->prepare(check_sql($sql)); if ($prep_statement) {