]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also fix "occ status" 1288/head
authorJoas Schilling <coding@schilljs.com>
Tue, 6 Sep 2016 12:13:28 +0000 (14:13 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 6 Sep 2016 14:09:50 +0000 (16:09 +0200)
core/Command/Status.php

index 2f7173341b4f6f91f890bafd7b323fec2419c822..91c79d276700c8020e250ce79a27e65c717edfba 100644 (file)
@@ -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);