|
@ -828,7 +828,7 @@ class attforblock { |
|
|
$rec->lasttakenby = $USER->id; |
|
|
$rec->lasttakenby = $USER->id; |
|
|
$DB->update_record('attendance_sessions', $rec); |
|
|
$DB->update_record('attendance_sessions', $rec); |
|
|
|
|
|
|
|
|
$this->update_users_grade(array_keys($sesslog)); |
|
|
if ($this->grade != 0) $this->update_users_grade(array_keys($sesslog)); |
|
|
|
|
|
|
|
|
$params = array( |
|
|
$params = array( |
|
|
'sessionid' => $this->pageparams->sessionid, |
|
|
'sessionid' => $this->pageparams->sessionid, |
|
@ -1010,6 +1010,7 @@ class attforblock { |
|
|
$grades = array(); |
|
|
$grades = array(); |
|
|
|
|
|
|
|
|
foreach ($userids as $userid) { |
|
|
foreach ($userids as $userid) { |
|
|
|
|
|
$grades[$userid] = new stdClass(); |
|
|
$grades[$userid]->userid = $userid; |
|
|
$grades[$userid]->userid = $userid; |
|
|
$grades[$userid]->rawgrade = att_calc_user_grade_fraction($this->get_user_grade($userid), $this->get_user_max_grade($userid)) * $this->grade; |
|
|
$grades[$userid]->rawgrade = att_calc_user_grade_fraction($this->get_user_grade($userid), $this->get_user_max_grade($userid)) * $this->grade; |
|
|
} |
|
|
} |
|
|