diff --git a/lib/private/Updater.php b/lib/private/Updater.php index dbcaccaad2..608b62143d 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -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; } diff --git a/status.php b/status.php index 86f1f68dde..4afabbf2cd 100644 --- a/status.php +++ b/status.php @@ -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,