MDL-47494 gapselect: NOBUG noticed use of deprecated database function.
authorJamie Pratt <me@jamiep.org>
Mon, 27 Jun 2011 08:12:57 +0000 (15:12 +0700)
committerJamie Pratt <me@jamiep.org>
Mon, 27 Jun 2011 08:12:57 +0000 (15:12 +0700)
question/type/gapselect/questiontypebase.php

index c321b7e..db0a7c9 100755 (executable)
@@ -84,7 +84,7 @@ abstract class qtype_gapselect_base extends question_type {
 
         // Delete old answer records
         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(),