Update dialplan.php

This commit is contained in:
FusionPBX 2016-11-20 14:01:59 -07:00 committed by GitHub
parent dd8385f63b
commit e8e7825f2c
1 changed files with 2 additions and 2 deletions

View File

@ -571,7 +571,7 @@ include "root.php";
}
}
if ($this->is_empty == "dialplan_xml") {
$sql .= "and (p.dialplan_xml = '' or p.dialplan_xml is null) \n";
$sql .= "and p.dialplan_xml is null \n";
}
$sql .= "order by \n";
$sql .= "dialplan_context asc, \n";
@ -598,7 +598,7 @@ include "root.php";
$sql .= "from v_dialplans as p, v_dialplan_details as s \n";
$sql .= "where p.dialplan_uuid = s.dialplan_uuid \n";
if ($this->is_empty == "dialplan_xml") {
$sql .= "and (p.dialplan_xml = '' or p.dialplan_xml is null) \n";
$sql .= "and p.dialplan_xml is null \n";
}
if (isset($this->context)) {
if ($this->context == "public" || substr($this->context, 0, 7) == "public@" || substr($this->context, -7) == ".public") {