summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php
index 8d3baab752e..10f5a5c4302 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -980,13 +980,13 @@ class OC {
//setup extra user backends
OC_User::setupBackends();
- if (OC_User::login($_POST["user"], $_POST["password"])) {
+ if (OC_User::login((string)$_POST["user"], (string)$_POST["password"])) {
$userId = OC_User::getUser();
// setting up the time zone
if (isset($_POST['timezone-offset'])) {
- self::$server->getSession()->set('timezone', $_POST['timezone-offset']);
- self::$server->getConfig()->setUserValue($userId, 'core', 'timezone', $_POST['timezone']);
+ self::$server->getSession()->set('timezone', (string)$_POST['timezone-offset']);
+ self::$server->getConfig()->setUserValue($userId, 'core', 'timezone', (string)$_POST['timezone']);
}
self::cleanupLoginTokens($userId);