userid must be set in new grade too

This commit is contained in:
skodak 2007-10-18 10:08:26 +00:00
parent 478f4322fa
commit 3b34f698b5

View File

@ -357,6 +357,7 @@ class grade_report_grader extends grade_report {
if (!isset($this->grades[$userid][$itemid])) {
$this->grades[$userid][$itemid] = new grade_grade();
$this->grades[$userid][$itemid]->itemid = $itemid;
$this->grades[$userid][$itemid]->userid = $userid;
$this->grades[$userid][$itemid]->grade_item =& $this->gtree->items[$itemid]; // db caching
}
}