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:
Diffstat (limited to 'status.php')
-rw-r--r--status.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/status.php b/status.php
index 179fe3f49f2..88805ad6b19 100644
--- a/status.php
+++ b/status.php
@@ -33,8 +33,11 @@ try {
'version'=>implode('.', OC_Util::getVersion()),
'versionstring'=>OC_Util::getVersionString(),
'edition'=>OC_Util::getEditionString());
-
- echo(json_encode($values));
+ if (OC::$CLI) {
+ print_r($values);
+ } else {
+ echo(json_encode($values));
+ }
} catch (Exception $ex) {
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);