Skip to content

Commit

Permalink
Merge branch 'master' into 3.next
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Aug 2, 2018
2 parents bb50d0d + 0b9f397 commit 51f46ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Session.php
Expand Up @@ -608,11 +608,11 @@ public function renew()
*/
protected function _timedOut()
{
$time = (int)$this->read('Config.time');
$time = $this->read('Config.time');
$result = false;

$checkTime = $time !== null && $this->_lifetime > 0;
if ($checkTime && (time() - $time > $this->_lifetime)) {
if ($checkTime && (time() - (int)$time > $this->_lifetime)) {
$result = true;
}

Expand Down

0 comments on commit 51f46ef

Please sign in to comment.