Skip to content

Commit

Permalink
Merge branch 'MDL-54994_31' of git://github.com/stronk7/moodle into M…
Browse files Browse the repository at this point in the history
…OODLE_31_STABLE
  • Loading branch information
danpoltawski committed Jul 4, 2016
2 parents 2a5bb77 + 7ef6433 commit f852010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/badgeslib.php
Expand Up @@ -1089,7 +1089,7 @@ function get_backpack_settings($userid, $refresh = false) {
$badges = $backpack->get_badges($collection->collectionid);
if (isset($badges->badges)) {
$out->badges = array_merge($out->badges, $badges->badges);
$out->totalbadges += count($out->badges);
$out->totalbadges += count($badges->badges);
} else {
$out->badges = array_merge($out->badges, array());
}
Expand Down

0 comments on commit f852010

Please sign in to comment.