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

Make sure we evaluate installed everywhere as a boolean
This commit is contained in:
Vincent Petry 2016-05-23 14:32:10 +02:00
commit 68c5df798c
2 changed files with 3 additions and 2 deletions

View file

@ -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;
}

View file

@ -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,