Merge branch 'MDL-37037-master' of git://github.com/damyon/moodle
[moodle.git] / mod / assign / locallib.php
index 0b4b289..9971cd0 100644 (file)
@@ -2889,7 +2889,7 @@ class assign {
                 }
 
                 $gradeddate = $gradebookgrade->dategraded;
-                $grader = $DB->get_record('user', array('id'=>$gradebookgrade->usermodified));
+                $grader = $DB->get_record('user', array('id'=>$grade->grader));
 
                 $feedbackstatus = new assign_feedback_status($gradefordisplay,
                                                       $gradeddate,