diff --git a/grade/report/user/lib.php b/grade/report/user/lib.php index d7073ea781c..915aefd2525 100644 --- a/grade/report/user/lib.php +++ b/grade/report/user/lib.php @@ -350,7 +350,6 @@ class grade_report_user extends grade_report { // The grade object can be marked visible but still be hidden // if "enablegroupmembersonly" is on and its an activity assigned to a grouping the user is not in if (!empty($grade_object->itemmodule) && !empty($grade_object->iteminstance)) { - $instances = $this->gtree->modinfo->get_instances(); if (!empty($instances[$grade_object->itemmodule][$grade_object->iteminstance])) { $cm = $instances[$grade_object->itemmodule][$grade_object->iteminstance]; @@ -359,7 +358,6 @@ class grade_report_user extends grade_report { } } } - /// Excluded Item if ($grade_grade->is_excluded()) { $fullname .= ' ['.get_string('excluded', 'grades').']';