Skip to content

Conversation

Kovah
Copy link
Contributor

@Kovah Kovah commented Oct 30, 2016

Referenced function: GetPlayerAchievements()

$appName = str_replace(' ', '', $app->first()->name); caused several "Trying to get property of non-object" exceptions while running the function for hundreds of games. I didn't investigated why $appwas empty but it was so this is just a small hotfix.

The exceptions can be reproduced with the Steam App ID 219540 (Arma 2: Operation Arrowhead Beta (Obsolete)).

$app->first()->name may cause an additional "Trying to get property of non-object" exception if the app is not available
@stygiansabyss stygiansabyss merged commit 9e8dd6d into syntaxerrors:master Oct 31, 2016
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