diff --git a/e107_handlers/session_handler.php b/e107_handlers/session_handler.php index e4b5ff7b9..3a34ac00e 100644 --- a/e107_handlers/session_handler.php +++ b/e107_handlers/session_handler.php @@ -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