Skip to content

Commit

Permalink
Merge pull request #4 from alpixel/master
Browse files Browse the repository at this point in the history
Fixing the retrieval of server ids
  • Loading branch information
Prasetyo committed Jul 13, 2015
2 parents 4d48c3a + 6151fe0 commit b65ac56
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 b65ac56

Please sign in to comment.