mirror of
https://github.com/itflow-org/itflow
synced 2026-03-08 06:44:51 +00:00
Define canned date if not set. Prevents undefined errors
This commit is contained in:
@@ -36,6 +36,11 @@ if(isset($_GET['o'])){
|
|||||||
$disp = "ASC";
|
$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';
|
||||||
|
}
|
||||||
//Date Filter
|
//Date Filter
|
||||||
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
if($_GET['canned_date'] == "custom" AND !empty($_GET['dtf'])){
|
||||||
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
$dtf = mysqli_real_escape_string($mysqli,$_GET['dtf']);
|
||||||
|
|||||||
Reference in New Issue
Block a user