$record->userid = $userid;
if ($modified >= 0) {
$record->grade = unformat_float(optional_param('quickgrade_' . $record->userid, -1, PARAM_TEXT));
+ } else {
+ // This user was not in the grading table.
+ continue;
}
$record->lastmodified = $modified;
$record->gradinginfo = grade_get_grades($this->get_course()->id,