diff --git a/renderhelpers.php b/renderhelpers.php index 1fd8010..4fa0dc2 100644 --- a/renderhelpers.php +++ b/renderhelpers.php @@ -214,12 +214,12 @@ function construct_full_user_stat_html_table($attforblock, $course, $user) { $gradeable = $attforblock->grade > 0; $statuses = att_get_statuses($attforblock->id); - $userstatusesstat = get_user_statuses_stat($attforblock->id, $course->startdate, $user->id); - $stat['completed'] = get_user_taken_sessions_count($attforblock->id, $course->startdate, $user->id); + $userstatusesstat = att_get_user_statuses_stat($attforblock->id, $course->startdate, $user->id); + $stat['completed'] = att_get_user_taken_sessions_count($attforblock->id, $course->startdate, $user->id); $stat['statuses'] = $userstatusesstat; if ($gradeable) { $grade = att_get_user_grade($userstatusesstat, $statuses); - $maxgrade = att_get_user_max_grade(get_user_taken_sessions_count($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); if (!$decimalpoints = grade_get_setting($course->id, 'decimalpoints')) { $decimalpoints = $CFG->grade_decimalpoints; }