grades: MDL-22098 silly bug that leads to bad performance problems in the grader report.

This commit is contained in:
Tim Hunt
2010-04-15 16:37:05 +00:00
parent 4399b9d5de
commit 79312a06e4
+1 -1
View File
@@ -863,7 +863,7 @@ class grade_item extends grade_object {
* @return object Grade_category
*/
public function load_item_category() {
if (empty($this->category->id)) {
if (empty($this->item_category->id)) {
$this->item_category = $this->get_item_category();
}
return $this->item_category;