MDL-37646 Assign: Quickgrading fix when using grading filters or lots of students.
authorDamyon Wiese <damyon@moodle.com>
Tue, 29 Jan 2013 06:36:18 +0000 (14:36 +0800)
committerDamyon Wiese <damyon@moodle.com>
Tue, 29 Jan 2013 06:36:18 +0000 (14:36 +0800)
mod/assign/locallib.php

index b418500..a453747 100644 (file)
@@ -3877,6 +3877,9 @@ class assign {
             $record->userid = $userid;
             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,