summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-11-06 14:39:51 +0100
committerLukas Reschke <lukas@owncloud.com>2014-11-06 14:39:51 +0100
commit5f2a0836868b522cf87248dd0c35414c5d6151ad (patch)
treecaf51d4393395f3a82423e7d7f7cc9bb2bff758d /lib/base.php
parentf73d65303601574e1bcc68e0aa8ae8ef4853a118 (diff)
parentd30fd2354493902524d77438eb0e4195df4883a1 (diff)
downloadnextcloud-server-5f2a0836868b522cf87248dd0c35414c5d6151ad.tar.gz
nextcloud-server-5f2a0836868b522cf87248dd0c35414c5d6151ad.zip
Merge pull request #11883 from owncloud/clear-session-for-setup
Clear session before setup
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 9ccbc4aeb22..eecdd961852 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -713,7 +713,8 @@ class OC {
OC::loadAppClassPaths();
// Check if ownCloud is installed or in maintenance (update) mode
- if (!OC_Config::getValue('installed', false)) {
+ if (!\OC::$server->getConfig()->getSystemValue('installed', false)) {
+ \OC::$server->getSession()->clear();
$controller = new OC\Core\Setup\Controller(\OC::$server->getConfig());
$controller->run($_POST);
exit();