Skip to content

Fix error if Steam returns empty response#80

Merged
stygiansabyss merged 1 commit intosyntaxerrors:masterfrom
ilumos:master
Nov 15, 2018
Merged

Fix error if Steam returns empty response#80
stygiansabyss merged 1 commit intosyntaxerrors:masterfrom
ilumos:master

Conversation

@ilumos
Copy link
Contributor

@ilumos ilumos commented Nov 15, 2018

Querying the API for a Steam user who has their gameplay history private returns:

"response": {}

which results in the error:

Undefined property: stdClass::$total_count in Player.php on line 120

To reproduce:

$player = Steam::player(76561198160024140)->GetRecentlyPlayedGames();

Querying the API for a Steam user who hastheir gameplay history private returns:
`"response": {}`
which results in the error:
`Undefined property: stdClass::$total_count in Player.php on line 120`
@ilumos
Copy link
Contributor Author

ilumos commented Nov 15, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants