More Var Fixes

This commit is contained in:
johnnyq
2022-02-13 15:59:27 -05:00
parent 1b22c72851
commit 5e4cc4067b
5 changed files with 10 additions and 4 deletions

View File

@@ -36,6 +36,12 @@ if(isset($_GET['o'])){
$disp = "DESC";
}
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['dtf'])){
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);