Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a2d6ea7
)
MDL-47494 gapselect: NOBUG noticed use of deprecated database function.
author
Jamie Pratt
<me@jamiep.org>
Mon, 27 Jun 2011 08:12:57 +0000
(15:12 +0700)
committer
Jamie Pratt
<me@jamiep.org>
Mon, 27 Jun 2011 08:12:57 +0000
(15:12 +0700)
question/type/gapselect/questiontypebase.php
patch
|
blob
|
blame
|
history
diff --git
a/question/type/gapselect/questiontypebase.php
b/question/type/gapselect/questiontypebase.php
index
c321b7e
..
db0a7c9
100755
(executable)
--- a/
question/type/gapselect/questiontypebase.php
+++ b/
question/type/gapselect/questiontypebase.php
@@
-84,7
+84,7
@@
abstract class qtype_gapselect_base extends question_type {
// Delete old answer records
foreach ($oldanswers as $oa) {
// 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(),
}
$options = $DB->get_record('question_' . $this->name(),