diff --git a/admin/callhistory.php b/admin/callhistory.php index f792ac86..a60da656 100644 --- a/admin/callhistory.php +++ b/admin/callhistory.php @@ -112,7 +112,8 @@ if ($operator_id) { if (isset($_GET['csv'])) { - $qds = str_replace(' ','_',$_GET['dq']); $smpds = str_replace(' ','_',$_GET['ds']); + if (isset($_GET['dq'])){$qds = str_replace(' ','_',$_GET['dq']);} else{$qds = false;} + if (isset($_GET['ds'])){$smpds = str_replace(' ','_',$_GET['ds']);} else {$smpds = false;} $fn = "callhistory-" . $qds . $smpds . date("_d-M-Y_H-i") . ".csv"; header("Content-Type: text/csv"); @@ -161,8 +162,13 @@ if ($operator_id) print "