Skip to content

Commit

Permalink
fix variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nifeng committed Aug 1, 2019
1 parent d847b28 commit 44a775a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Session/Handler/BizSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function write($session_id, $session_data)

public function getLock($lockName, $lockTime = 30)
{
$result = $this->biz['db']->fetchAssoc("SELECT GET_LOCK(?, ?) AS getLock", array('sess_'.$lockName, $lockName));
$result = $this->biz['db']->fetchAssoc("SELECT GET_LOCK(?, ?) AS getLock", array('sess_'.$lockName, $lockTime));

return $result['getLock'];
}
Expand Down

0 comments on commit 44a775a

Please sign in to comment.