diff --git a/grade/edit/letter/index.php b/grade/edit/letter/index.php index 393afe4c96905..dedd4bf2462b5 100644 --- a/grade/edit/letter/index.php +++ b/grade/edit/letter/index.php @@ -141,7 +141,7 @@ if (!$admin and empty($data->override)) { $records = $DB->get_records('grade_letters', array('contextid' => $context->id)); foreach ($records as $record) { - $DB->delete_record('grade_letters', array('id' => $record->id)); + $DB->delete_records('grade_letters', array('id' => $record->id)); // Trigger the letter grade deleted event. $event = \core\event\grade_letter_deleted::create(array( 'objectid' => $record->id,