From fe1493fcb5c5b4654965b7d105fce88de63ff83e Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 16 Sep 2019 04:13:03 -0600 Subject: [PATCH] Update xml_cdr.php --- app/xml_cdr/resources/classes/xml_cdr.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/xml_cdr/resources/classes/xml_cdr.php b/app/xml_cdr/resources/classes/xml_cdr.php index d87bf9537f..91e79d9dfc 100644 --- a/app/xml_cdr/resources/classes/xml_cdr.php +++ b/app/xml_cdr/resources/classes/xml_cdr.php @@ -8,7 +8,7 @@ the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ - Software distributed under the License is distributed on an "AS IS" basis, + Software distributed under the License is distributed on an "as IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. @@ -886,7 +886,7 @@ if (!class_exists('xml_cdr')) { else { $sql .= "and direction = 'inbound') \n"; } - $sql .= "AS answered, \n"; + $sql .= "as answered, \n"; $sql .= "count(*) \n"; $sql .= "filter( \n"; @@ -901,9 +901,9 @@ if (!class_exists('xml_cdr')) { $sql .= " or \n"; $sql .= " c.destination_number = e.number_alias))) \n"; $sql .= " and ( \n"; - $sql .= " c.answer_stamp IS NULL \n"; + $sql .= " c.answer_stamp is null \n"; $sql .= " and \n"; - $sql .= " c.bridge_uuid IS NULL) \n"; + $sql .= " c.bridge_uuid is null) \n"; if ($this->include_internal) { $sql .= " and (direction = 'inbound' or direction = 'outbound'))"; } else { @@ -1044,7 +1044,7 @@ if (!class_exists('xml_cdr')) { $sql .= "e.description \n"; $sql .= "from v_extensions as e, v_domains as d, \n"; - $sql .= "( SELECT \n"; + $sql .= "( select \n"; $sql .= " domain_uuid, \n"; $sql .= " extension_uuid, \n"; $sql .= " caller_id_number, \n";