Skip to content
This repository has been archived by the owner on Jun 15, 2020. It is now read-only.

Commit

Permalink
Fixed regression after old renamings (thanks Davo Smith)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreev-artem committed Mar 2, 2013
1 parent 13a93e6 commit cc70c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ function attforblock_user_outline($course, $user, $mod, $attforblock) {
$result->time = 0;
if (has_capability('mod/attforblock:canbelisted', $mod->context, $user->id)) {
$statuses = att_get_statuses($attforblock->id);
$grade = att_get_user_grade(get_user_statuses_stat($attforblock->id, $course->startdate, $user->id), $statuses);
$maxgrade = att_get_user_max_grade(get_user_taken_sessions_count($attforblock->id, $course->startdate, $user->id), $statuses);
$grade = att_get_user_grade(att_get_user_statuses_stat($attforblock->id, $course->startdate, $user->id), $statuses);
$maxgrade = att_get_user_max_grade(att_get_user_taken_sessions_count($attforblock->id, $course->startdate, $user->id), $statuses);

$result->info = $grade.' / '.$maxgrade;
}
Expand Down

0 comments on commit cc70c73

Please sign in to comment.