1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Issue #5443 PHP 8.4 fix

This commit is contained in:
camer0n
2025-04-22 11:49:46 -07:00
parent 3e220421c1
commit fa277fc3c9

View File

@@ -1275,11 +1275,10 @@ class e_session_db implements SessionHandlerInterface
* @param int $max_lifetime
* @return bool
*/
public function gc(int $max_lifetime): bool
{
$this->_db->delete($this->getTable(), '`session_expires`<'.time());
return true;
}
public function gc(int $max_lifetime): int|false
{
return $this->_db->delete($this->getTable(), '`session_expires`<'.time());
}
/**
* Allow only well formed session id string