Skip to content

Commit

Permalink
Merge pull request #37 from XboxLeaders/develop
Browse files Browse the repository at this point in the history
Documentation formatting and bugfixes
  • Loading branch information
Jason Clemons committed Sep 12, 2013
2 parents 3aeabfd + 23f89bd commit e087227
Show file tree
Hide file tree
Showing 2 changed files with 197 additions and 240 deletions.
2 changes: 1 addition & 1 deletion api/2.0/includes/classes/api.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function fetch_games($gamertag, $region)
$games['achievements']['current'] = $games['achievements']['current'] + $games['games'][$i]['achievements']['current'];
$games['achievements']['total'] = $games['achievements']['total'] + $games['games'][$i]['achievements']['total'];

if ($game['Progress'][$g]['Achievements'] !== 0 && $games['games'][$i]['isapp'] !== false) {
if ($game['Progress'][$g]['Achievements'] !== 0) {
$games['games'][$i]['progress'] = round((($game['Progress'][$g]['Achievements'] / $game['PossibleAchievements']) * 100), 1);
}

Expand Down
Loading

0 comments on commit e087227

Please sign in to comment.