Skip to content

Commit e00c270

Browse files
committed
Fix GetOwnedGames unable to accept a single appId
1 parent 70c5ecc commit e00c270

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Syntax/SteamApi/Steam/Player.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,11 @@ public function GetOwnedGames($includeAppInfo = true, $includePlayedFreeGames =
8484
if ($includePlayedFreeGames) {
8585
$arguments['include_played_free_games'] = $includePlayedFreeGames;
8686
}
87+
88+
$appIdsFilter = (array) $appIdsFilter;
89+
8790
if (count($appIdsFilter) > 0) {
88-
$arguments['appids_filter'] = (array)$appIdsFilter;
91+
$arguments['appids_filter'] = $appIdsFilter;
8992
}
9093

9194
// Get the client

0 commit comments

Comments
 (0)