Skip to content

Commit

Permalink
Merge pull request #1 from Sindious/GetPlayerLevelDetails-error-hande…
Browse files Browse the repository at this point in the history
…ling

Update Player.php
  • Loading branch information
Sindious authored Oct 7, 2020
2 parents 1ab2478 + 5bae25a commit 6f726e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Syntax/SteamApi/Steam/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function GetSteamLevel()
public function GetPlayerLevelDetails()
{
$details = $this->GetBadges();

if(count((array)$details) == 0){
return NULL;
}

$details = new Level($details);

Expand Down

0 comments on commit 6f726e2

Please sign in to comment.