From: Côme Chilliet Date: Tue, 29 Nov 2022 17:13:51 +0000 (+0100) Subject: Put back cast to string now that timelimit is an int X-Git-Tag: v26.0.0beta1~202^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=26d75add8f48933538ec39419752bc94bfc078ec;p=nextcloud-server.git Put back cast to string now that timelimit is an int Signed-off-by: Côme Chilliet --- diff --git a/lib/base.php b/lib/base.php index 49df9e87d24..b216ef86f9b 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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)) {