grades: MDL-22098 silly bug that leads to bad performance problems in the grader report.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user