mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
More Define canned date if not set. Prevents undefined errors Same as a48e302
This commit is contained in:
@@ -87,6 +87,12 @@
|
||||
$disp = "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';
|
||||
}
|
||||
|
||||
//Invoice status from GET
|
||||
if(isset($_GET['status']) && ($_GET['status']) == 'Draft'){
|
||||
$status = 'Draft';
|
||||
@@ -100,7 +106,6 @@
|
||||
$status = '%';
|
||||
}
|
||||
|
||||
|
||||
//Date Filter
|
||||
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||
|
||||
Reference in New Issue
Block a user