From 6151fe02e40d4fd4ae9410e73a70d27267766e37 Mon Sep 17 00:00:00 2001 From: Benjamin HUBERT Date: Thu, 9 Jul 2015 14:12:58 +0200 Subject: [PATCH] Fixing the retrieval of server ids --- src/Online/Command/Server/Server.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Online/Command/Server/Server.php b/src/Online/Command/Server/Server.php index e4e2dab..98d3880 100644 --- a/src/Online/Command/Server/Server.php +++ b/src/Online/Command/Server/Server.php @@ -22,16 +22,8 @@ class Server extends Online */ public function getAllServerId() { - $query = self::buildQuery('/server'); - $ids = json_decode(self::execQuery($query)); - - foreach ($ids as $id) { - $var = explode('/', $id->{'$ref'}); - $result[] = $var[4]; - } - - return $result; + return self::execQuery($query); } /**