From 012c77d81e1142042bc3d3c18b2160a2e337a37f Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 11 Aug 2021 12:49:20 -0400 Subject: [PATCH] Fixed Canned Dates issue where seach queries would not work --- clients.php | 2 +- expenses.php | 4 ++-- invoices.php | 2 +- payments.php | 2 +- quotes.php | 2 +- recurring.php | 2 +- revenues.php | 2 +- tickets.php | 2 +- transfers.php | 2 +- trips.php | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) 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()"));