From afcc12e80b0eb1560a470eadf6c33b4ce9a33d97 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Tue, 29 Jan 2013 14:36:18 +0800 Subject: [PATCH] MDL-37646 Assign: Quickgrading fix when using grading filters or lots of students. --- mod/assign/locallib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mod/assign/locallib.php b/mod/assign/locallib.php index df2f734832c..26c2e08edeb 100644 --- a/mod/assign/locallib.php +++ b/mod/assign/locallib.php @@ -3671,6 +3671,9 @@ class assign { $gradevalue = optional_param('quickgrade_' . $userid, '', PARAM_TEXT); if($modified >= 0) { $record->grade = unformat_float(optional_param('quickgrade_' . $record->userid, -1, PARAM_TEXT)); + } else { + // This user was not in the grading table. + continue; } $record->lastmodified = $modified; $record->gradinginfo = grade_get_grades($this->get_course()->id, 'mod', 'assign', $this->get_instance()->id, array($userid));