Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-06 15:13:28 +0300
committerJoas Schilling <coding@schilljs.com>2016-09-06 17:13:41 +0300
commit930fd6fb568b46ff37e3b8c43be28a2db9a933eb (patch)
tree0c05df47dfa7e0d9d2a3235d2c65d8e24622b0d0
parent8ada5e6ca767db4ff2ebcbae8e2c025394e67e56 (diff)
Also fix "occ status"
-rw-r--r--core/command/status.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/command/status.php b/core/command/status.php
index 2f7173341b4..91c79d27670 100644
--- a/core/command/status.php
+++ b/core/command/status.php
@@ -38,11 +38,13 @@ class Status extends Base {
}
protected function execute(InputInterface $input, OutputInterface $output) {
+ $installed = (bool) \OC::$server->getConfig()->getSystemValue('installed', false);
+
$values = array(
- 'installed' => (bool) \OC::$server->getConfig()->getSystemValue('installed', false),
+ 'installed' => $installed,
'version' => implode('.', \OCP\Util::getVersion()),
'versionstring' => \OC_Util::getVersionString(),
- 'edition' => \OC_Util::getEditionString(),
+ 'edition' => $installed ? \OC_Util::getEditionString() : '',
);
$this->writeArrayInOutputFormat($input, $output, $values);