mirror of
https://github.com/grocy/grocy.git
synced 2025-09-29 19:12:24 +00:00
Removed type conversions where no longer needed
PHP 8.1 PDO SQLite now returns native data types
This commit is contained in:
@@ -12,7 +12,7 @@ class SessionService extends BaseService
|
||||
public function CreateSession($userId, $stayLoggedInPermanently = false)
|
||||
{
|
||||
$newSessionKey = $this->GenerateSessionKey();
|
||||
$expires = date('Y-m-d H:i:s', intval(time() + 2592000));
|
||||
$expires = date('Y-m-d H:i:s', time() + 2592000);
|
||||
|
||||
// Default is that sessions expire in 30 days
|
||||
if ($stayLoggedInPermanently === true)
|
||||
|
Reference in New Issue
Block a user