Add dialplan domain_uuid is null.

This commit is contained in:
markjcrane 2015-12-20 01:46:30 -07:00
parent a089c6a76c
commit a940f9d3cb
1 changed files with 1 additions and 1 deletions

View File

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