From 70e3865d426577c52dd0cb803d2e73a0c3b57558 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 28 Jan 2020 17:28:01 -0700 Subject: [PATCH] Update xml_cdr_export.php --- app/xml_cdr/xml_cdr_export.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app/xml_cdr/xml_cdr_export.php b/app/xml_cdr/xml_cdr_export.php index b78a86d7b4..f912fb0b39 100644 --- a/app/xml_cdr/xml_cdr_export.php +++ b/app/xml_cdr/xml_cdr_export.php @@ -49,14 +49,11 @@ //get the format $export_format = $_REQUEST['export_format']; -//get the format - $showall = $_REQUEST['showall']; - -//exprot the csv +//export the csv if ($export_format == 'csv') { //define file name - if ($_REQUEST['showall'] == 'true') { + if ($_GET['show'] == 'all' && permission_exists('xml_cdr_all')) { $csv_filename = "cdr_".date("Ymd_His").".csv"; } else { @@ -318,4 +315,4 @@ } -?> \ No newline at end of file +?>