From 25a5c655f7cfb24b2bac597d6ec6ca68316098e9 Mon Sep 17 00:00:00 2001 From: justin-sleep Date: Fri, 2 Dec 2016 14:07:45 -0600 Subject: Move integer casting to the top of the chain Signed-off-by: justin-sleep --- core/Controller/LoginController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index b1542de5d3c..c3ccac37f78 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -240,7 +240,7 @@ class LoginController extends Controller { // TODO: remove password checks from above and let the user session handle failures // requires https://github.com/owncloud/core/pull/24616 $this->userSession->login($user, $password); - $this->userSession->createSessionToken($this->request, $loginResult->getUID(), $user, $password, $remember_login); + $this->userSession->createSessionToken($this->request, $loginResult->getUID(), $user, $password, (int)$remember_login); // User has successfully logged in, now remove the password reset link, when it is available $this->config->deleteUserValue($loginResult->getUID(), 'core', 'lostpassword'); -- cgit v1.2.3