aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--questiontype.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/questiontype.php b/questiontype.php
index 177ddff..9311964 100644
--- a/questiontype.php
+++ b/questiontype.php
@@ -70,7 +70,7 @@ class qtype_algebra extends question_type {
public function delete_question($questionid, $contextid) {
global $DB;
- $DB->delete_records('qtype_algebra', array('questionid' => $questionid));
+ $DB->delete_records('qtype_algebra_options', array('questionid' => $questionid));
$DB->delete_records('qtype_algebra_variables', array('question' => $questionid));
parent::delete_question($questionid, $contextid);