From e8e7825f2c44a7b3d924b51cb741c631669d12f7 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 20 Nov 2016 14:01:59 -0700 Subject: [PATCH] Update dialplan.php --- app/dialplan/resources/classes/dialplan.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dialplan/resources/classes/dialplan.php b/app/dialplan/resources/classes/dialplan.php index 1b5049fd08..8414d62ef3 100644 --- a/app/dialplan/resources/classes/dialplan.php +++ b/app/dialplan/resources/classes/dialplan.php @@ -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") {