Commit a821983e authored by Jamie Pratt's avatar Jamie Pratt
Browse files

MDL-47494 gapselect: NOBUG noticed use of deprecated database function.

parent a2d6ea7a
...@@ -84,7 +84,7 @@ abstract class qtype_gapselect_base extends question_type { ...@@ -84,7 +84,7 @@ abstract class qtype_gapselect_base extends question_type {
// Delete old answer records // Delete old answer records
foreach ($oldanswers as $oa) { foreach ($oldanswers as $oa) {
delete_records('question_answers', 'id', $oa->id); $DB->delete_records('question_answers', array('id' => $oa->id));
} }
$options = $DB->get_record('question_' . $this->name(), $options = $DB->get_record('question_' . $this->name(),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment