Skip to content

Commit

Permalink
lock minutes, not hours
Browse files Browse the repository at this point in the history
  • Loading branch information
trob authored Jul 28, 2018
1 parent ae2f421 commit 4f7365c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/fabrik_element/lockrow/lockrow.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ function render($data, $repeatCounter = 0)
return "";
}
$ttl = (int) $params->get('lockrow_ttl', '24');
$ttl_time = (int) $time + ($ttl * 60 * 60);
$ttl_time = (int) $time + ($ttl * 60);
if (time() < $ttl_time)
{
$app = JFactory::getApplication();
Expand Down Expand Up @@ -371,4 +371,4 @@ function onAjax_unlock()
}

}
?>
?>

0 comments on commit 4f7365c

Please sign in to comment.