diff options
author | MartB <mart.b@outlook.de> | 2018-09-06 21:34:16 +0300 |
---|---|---|
committer | MartB <mart.b@outlook.de> | 2018-09-06 21:34:16 +0300 |
commit | fe21b10de59edfd95bd50f5b3c65e444cd717788 (patch) | |
tree | 2bec50d45235319e94ae3af212a25624fdd6a634 /lib/base.php | |
parent | bf630e46f62c8ab6ec37f5d169cb2b75711028df (diff) |
replace setcookie value with '' instead of null.
The php documentation states that an empty string should be used for a cookie when it has no real value.
null leads to the following error: expects parameter 2 to be string, null given
Signed-off-by: Martin Böh <mart.b@outlook.de>
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 628756cd217..23b9adde86a 100644 --- a/lib/base.php +++ b/lib/base.php @@ -441,7 +441,7 @@ class OC { // session timeout if ($session->exists('LAST_ACTIVITY') && (time() - $session->get('LAST_ACTIVITY') > $sessionLifeTime)) { if (isset($_COOKIE[session_name()])) { - setcookie(session_name(), null, -1, self::$WEBROOT ? : '/'); + setcookie(session_name(), '', -1, self::$WEBROOT ? : '/'); } \OC::$server->getUserSession()->logout(); } |