aboutsummaryrefslogtreecommitdiff
path: root/questiontype.php
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2013-05-08 18:06:59 +0200
committerJean-Michel Vedrine <vedrine@vedrine.org>2013-05-08 18:06:59 +0200
commit678b4edf335c4d4f3851a19c2a30eddbec69d91e (patch)
tree55798c9cd3ef240913180b76d4913d01d5e0e378 /questiontype.php
parent0754591e3b95a6d4d220d77b9f94b60c758589d5 (diff)
forgot to change table name in one place
Diffstat (limited to 'questiontype.php')
-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);