Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/6110' into develop
Browse files Browse the repository at this point in the history
Forward port #6110
  • Loading branch information
weierophinney committed Apr 14, 2014
2 parents 73f65ce + e0917ed commit bfcee97
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions library/Zend/Session/SaveHandler/DbTableGateway.php
Expand Up @@ -164,10 +164,9 @@ public function destroy($id)
public function gc($maxlifetime)
{
$platform = $this->tableGateway->getAdapter()->getPlatform();
return (bool) $this->tableGateway->delete(sprintf('%s + %s < %d',
return (bool) $this->tableGateway->delete(sprintf('%s < %d',
$platform->quoteIdentifier($this->options->getModifiedColumn()),
$platform->quoteIdentifier($this->options->getLifetimeColumn()),
time()
(time() - $this->lifetime)
));
}
}

0 comments on commit bfcee97

Please sign in to comment.