summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest/server.php
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-02-10 13:30:31 +0000
committerramon <ramongomez@us.es>2017-02-10 13:30:31 +0000
commit357352b27302b3fef93367cc617647def09b04a0 (patch)
tree84caa009870e9796f417f7ecba1f069271719728 /admin/WebConsole/rest/server.php
parentf784f182cdda7f91f9e4b35157fe6bf55ba4b5af (diff)
#708: Obtener datos y código HTTP en llamadas {{{curl_multi}}} de PHP; usar fecha en formato ISO 8601 y quitar líneas en blanco al final de ficheros.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5185 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/rest/server.php')
-rw-r--r--admin/WebConsole/rest/server.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/rest/server.php b/admin/WebConsole/rest/server.php
index b1742566..4b275870 100644
--- a/admin/WebConsole/rest/server.php
+++ b/admin/WebConsole/rest/server.php
@@ -617,12 +617,12 @@ EOD;
// If no data, check OGAgent API connection.
$url = "https://$clientip:8000/opengnsys/status";
$result = multiRequest(Array($url));
- if (empty($result[0])) {
+ if (empty($result[0]['data'])) {
// Client is off.
$response['status'] = $status['OFF'];
} else {
// Get status and session data.
- $data = json_decode($result[0]);
+ $data = json_decode($result[0]['data']);
if (isset($status[$data->status])) {
$response['status'] = $status[$data->status];
$response['loggedin'] = $data->loggedin;