diff --git a/src/SaveHandler/DbTableGateway.php b/src/SaveHandler/DbTableGateway.php index 4e937a8f..e0126a9a 100644 --- a/src/SaveHandler/DbTableGateway.php +++ b/src/SaveHandler/DbTableGateway.php @@ -170,7 +170,7 @@ 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 + %s < %d', $platform->quoteIdentifier($this->options->getModifiedColumn()), $platform->quoteIdentifier($this->options->getLifetimeColumn()), time()