Add dialplan domain_uuid is null.
This commit is contained in:
parent
a089c6a76c
commit
a940f9d3cb
|
|
@ -218,7 +218,7 @@ include "root.php";
|
||||||
private function app_uuid_exists() {
|
private function app_uuid_exists() {
|
||||||
global $db;
|
global $db;
|
||||||
$sql = "select count(*) as num_rows from v_dialplans ";
|
$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."' ";
|
$sql .= "and app_uuid = '".$this->app_uuid."' ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
if ($prep_statement) {
|
if ($prep_statement) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue