diff options
Diffstat (limited to 'admin/WebConsole/principal/sondeo.php')
-rw-r--r-- | admin/WebConsole/principal/sondeo.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/admin/WebConsole/principal/sondeo.php b/admin/WebConsole/principal/sondeo.php index 793ecbd6..27504587 100644 --- a/admin/WebConsole/principal/sondeo.php +++ b/admin/WebConsole/principal/sondeo.php @@ -80,13 +80,13 @@ // Launch concurrent requests. $responses = multiRequest($urls); // Process responses array (IP as array index). - foreach ($responses as $ip => $data) { - if (isset($data)) { - $status = json_decode($data); + foreach ($responses as $ip => $resp)) { + if (isset($resp['data'])) { + $data = json_decode($resp['data']); // If user session is oppened, then append "S" to client status. - if (isset($status->status) and isset($status->loggedin)) { + if (isset($data->status) and isset($data->loggedin)) { // Output format: IP1/Status1;... - echo "$ip/".$status->status.($status->loggedin?"S;":";"); + echo "$ip/".$data->status.($data->loggedin?"S;":";"); } } } |