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 +?>