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

Fix lock renew bug (renew expired locks)

parent 09230574
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ class TicketLock {
function renew($lockTime=0) {
if(!$lockTime || !is_numeric($lockTime)) //XXX: test to make it works.
$lockTime = '(TIME_TO_SEC(TIMEDIFF(created,expire))/60)';
$lockTime = '(TIME_TO_SEC(TIMEDIFF(expire,created))/60)';
$sql='UPDATE '.TICKET_LOCK_TABLE
......
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