Skip to content

Commit 09974ab

Browse files
authored
Merge pull request #112 from Sindious/master
GetPlayerLevelDetails-error-handeling
2 parents 4f4eb15 + 6f726e2 commit 09974ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Syntax/SteamApi/Steam/Player.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function GetSteamLevel()
3434
public function GetPlayerLevelDetails()
3535
{
3636
$details = $this->GetBadges();
37+
38+
if(count((array)$details) == 0){
39+
return NULL;
40+
}
3741

3842
$details = new Level($details);
3943

0 commit comments

Comments
 (0)