Skip to content

Commit

Permalink
Fixing the retrieval of server ids
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-hubert committed Jul 9, 2015
1 parent de25b05 commit 6151fe0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Online/Command/Server/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 6151fe0

Please sign in to comment.