Skip to content

Commit

Permalink
Allowing id conversion to throw error even when passed a possible ID64
Browse files Browse the repository at this point in the history
Related to syntaxerrors#41
  • Loading branch information
stygiansabyss committed Aug 29, 2016
1 parent 0973d40 commit e67a4f7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Syntax/SteamApi/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,10 @@ private function convertSteamIdTo64()
{
if (is_array($this->steamId)) {
array_walk($this->steamId, function (&$id) {
if (strpos($id, ':') !== false) {
// Convert the id to all types and grab the 64 bit version
$id = $this->convertToAll($id)->id64;
}
// Convert the id to all types and grab the 64 bit version
$id = $this->convertToAll($id)->id64;
});
} elseif (strpos(':', $this->steamId) !== false) {
} else {
// Convert the id to all types and grab the 64 bit version
$this->steamId = $this->convertToAll($this->steamId)->id64;
}
Expand Down

0 comments on commit e67a4f7

Please sign in to comment.