diff --git a/clients.php b/clients.php index 10bc9ef6..f41ff650 100644 --- a/clients.php +++ b/clients.php @@ -46,6 +46,12 @@ if(isset($_GET['order'])){ $order_display = "ASC"; } +if (empty($_GET['canned_date'])) { + //Prevents lots of undefined variable errors. + // $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00 + $_GET['canned_date'] = 'custom'; +} + //Date Filter if($_GET['canned_date'] == "custom" AND !empty($_GET['date_from'])){ $date_from = mysqli_real_escape_string($mysqli,$_GET['date_from']);