diff --git a/clients.php b/clients.php index 753d0ead..95aa2446 100644 --- a/clients.php +++ b/clients.php @@ -47,7 +47,7 @@ if(isset($_GET['o'])){ } //Date Filter -if($_GET['canned_date'] =="custom"){ +if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){ $dtf = $_GET['dtf']; $dtt = $_GET['dtt']; }elseif($_GET['canned_date'] == "today"){ diff --git a/expenses.php b/expenses.php index d221cd96..fe07a86a 100644 --- a/expenses.php +++ b/expenses.php @@ -37,7 +37,7 @@ if(isset($_GET['o'])){ } //Date Filter -if($_GET['canned_date'] =="custom"){ +if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){ $dtf = $_GET['dtf']; $dtt = $_GET['dtt']; }elseif($_GET['canned_date'] == "today"){ @@ -112,7 +112,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));