Skip to content
Snippets Groups Projects
Commit 68c5df79 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #24765 from owncloud/boolean-installed-config

 	Make sure we evaluate installed everywhere as a boolean
parents 4ba36688 828dec9e
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,7 @@ class Updater extends BasicEmitter {
$this->emit('\OC\Updater', 'resetLogLevel', [ $logLevel, $this->logLevelNames[$logLevel] ]);
$this->config->setSystemValue('loglevel', $logLevel);
$this->config->setSystemValue('installed', true);
return $success;
}
......
......@@ -31,8 +31,8 @@ try {
$systemConfig = \OC::$server->getSystemConfig();
$installed = $systemConfig->getValue('installed') == 1;
$maintenance = $systemConfig->getValue('maintenance', false);
$installed = (bool) $systemConfig->getValue('installed', false);
$maintenance = (bool) $systemConfig->getValue('maintenance', false);
$values=array(
'installed'=>$installed,
'maintenance' => $maintenance,
......
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