diff options
Diffstat (limited to 'admin/WebConsole')
-rw-r--r-- | admin/WebConsole/rest/server.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/WebConsole/rest/server.php b/admin/WebConsole/rest/server.php index c7c153ad..a6256a2e 100644 --- a/admin/WebConsole/rest/server.php +++ b/admin/WebConsole/rest/server.php @@ -143,10 +143,10 @@ EOD; } // Parse responses. reset($urls); - foreach ($result as $res) { + foreach ($result as $myKey => $res) { if (!empty($res['data'])) { // Get status and session data. - $ip = key($urls); + $ip = $myKey; $data = json_decode($res['data']); if (@isset($status[$data->status])) { $stat[$ip] = $status[$data->status]; |