diff options
author | justin-sleep <justin@quarterfull.com> | 2016-12-01 04:58:38 -0600 |
---|---|---|
committer | justin-sleep <justin@quarterfull.com> | 2016-12-01 04:58:38 -0600 |
commit | bcadd22480359c168a1222bb5d1974b333b4df55 (patch) | |
tree | 3b91f93c68f45d140281d213c8b1b270b0c2a187 | |
parent | 9ee9d21cfd44e0e6b5ff3e2635f98e5ef3259cfd (diff) | |
download | nextcloud-server-bcadd22480359c168a1222bb5d1974b333b4df55.tar.gz nextcloud-server-bcadd22480359c168a1222bb5d1974b333b4df55.zip |
Explicitly cast $remember to int rather than using identity operator
Signed-off-by: justin-sleep <justin@quarterfull.com>
-rw-r--r-- | lib/private/User/Session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php index 22a14e17524..6d49a1b2ff2 100644 --- a/lib/private/User/Session.php +++ b/lib/private/User/Session.php @@ -558,7 +558,7 @@ class Session implements IUserSession, Emitter { try { $sessionId = $this->session->getId(); $pwd = $this->getPassword($password); - $this->tokenProvider->generateToken($sessionId, $uid, $loginName, $pwd, $name, IToken::TEMPORARY_TOKEN, +$remember); + $this->tokenProvider->generateToken($sessionId, $uid, $loginName, $pwd, $name, IToken::TEMPORARY_TOKEN, (int)$remember); return true; } catch (SessionNotAvailableException $ex) { // This can happen with OCC, where a memory session is used |