Skip to content
Snippets Groups Projects
Commit d30fd235 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Clear session before setup

parent a9b41cbf
No related branches found
No related tags found
No related merge requests found
......@@ -716,7 +716,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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment