Skip to content
Snippets Groups Projects
Commit f68eb308 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix advanced search regression from fcb34cfb

Don't add to endTime if not already set
parent 7b69d7a5
Branches
Tags
No related merge requests found
......@@ -191,7 +191,9 @@ class TicketsAjaxAPI extends AjaxController {
//dates
$startTime =($req['startDate'] && (strlen($req['startDate'])>=8))?strtotime($req['startDate']):0;
$endTime =($req['endDate'] && (strlen($req['endDate'])>=8))?strtotime($req['endDate']):0;
$endTime += (60 * 60 * 24) - 1; // $endTime should be the last second of the day, not the first like $startTime
if ($endTime)
// $endTime should be the last second of the day, not the first like $startTime
$endTime += (60 * 60 * 24) - 1;
if( ($startTime && $startTime>time()) or ($startTime>$endTime && $endTime>0))
$startTime=$endTime=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment