Update xml_cdr_inc.php

This commit is contained in:
FusionPBX 2017-12-09 12:26:36 -07:00 committed by GitHub
parent 54bb87a06f
commit 64acf7378b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -303,8 +303,8 @@
}
}
}
if ($_GET['showall'] == 'true' && permission_exists('xml_cdr_all')) {
$param .= "&showall=true";
if ($_GET['show'] == 'all' && permission_exists('xml_cdr_all')) {
$param .= "&show=all";
}
if (isset($order_by)) {
$param .= "&order_by=".$order_by."&order=".$order;
@ -395,11 +395,11 @@
$sql .= "rtp_audio_in_mos, ";
}
$sql .= "(answer_epoch - start_epoch) as tta ";
if ($_REQUEST['showall'] == "true" && permission_exists('xml_cdr_all')) {
if ($_REQUEST['show'] == "all" && permission_exists('xml_cdr_all')) {
$sql .= ", domain_name ";
}
$sql .= "from v_xml_cdr ";
if ($_REQUEST['showall'] == "true" && permission_exists('xml_cdr_all')) {
if ($_REQUEST['show'] == "all" && permission_exists('xml_cdr_all')) {
if ($sql_where) { $sql .= "where "; }
} else {
$sql .= "where domain_uuid = '".$domain_uuid."' ";