Skip to content
Snippets Groups Projects
Commit 74c898c5 authored by Peter Rotich's avatar Peter Rotich
Browse files

Fix $qwhere var

parent ec40458a
No related branches found
No related tags found
No related merge requests found
......@@ -146,12 +146,11 @@ class TicketsAjaxAPI extends AjaxController {
if( ($startTime && $startTime>time()) or ($startTime>$endTime && $endTime>0))
$startTime=$endTime=0;
//Have fun with dates.
if($startTime)
$qwhere.=' AND ticket.created>=FROM_UNIXTIME('.$startTime.')';
$where.=' AND ticket.created>=FROM_UNIXTIME('.$startTime.')';
if($endTime)
$qwhere.=' AND ticket.created<=FROM_UNIXTIME('.$endTime.')';
$where.=' AND ticket.created<=FROM_UNIXTIME('.$endTime.')';
//Query
if($_REQUEST['query']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment