grade_grade does not have itemid initialized in grader report

This commit is contained in:
toyomoyo 2007-10-18 07:09:31 +00:00
parent cb8cb8bf88
commit 478f4322fa

View File

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