]> source.dussan.org Git - nextcloud-server.git/commitdiff
Put back cast to string now that timelimit is an int
authorCôme Chilliet <come.chilliet@nextcloud.com>
Tue, 29 Nov 2022 17:13:51 +0000 (18:13 +0100)
committerCôme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com>
Mon, 19 Dec 2022 09:10:40 +0000 (09:10 +0000)
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
lib/base.php

index 49df9e87d24a9f697e971d874687ae6ee2c32315..b216ef86f9b711bfba6840862b581afc11f25256 100644 (file)
@@ -447,7 +447,7 @@ class OC {
 
                //try to set the session lifetime
                $sessionLifeTime = self::getSessionLifeTime();
-               @ini_set('gc_maxlifetime', $sessionLifeTime);
+               @ini_set('gc_maxlifetime', (string)$sessionLifeTime);
 
                // session timeout
                if ($session->exists('LAST_ACTIVITY') && (time() - $session->get('LAST_ACTIVITY') > $sessionLifeTime)) {