Skip to content

Commit 723272e

Browse files
Merge pull request #80 from ilumos/master
Fix error if Steam returns empty response
2 parents 98c2f37 + 10998f3 commit 723272e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Syntax/SteamApi/Steam/Player.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function GetRecentlyPlayedGames($count = null)
111111
// Get the client
112112
$client = $this->getServiceResponse($arguments);
113113

114-
if ($client->total_count > 0) {
114+
if (isset($client->total_count) && $client->total_count > 0) {
115115
// Clean up the games
116116
$games = $this->convertToObjects($client->games);
117117

0 commit comments

Comments
 (0)