mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-14679 fixed remaining old style set_field()s
This commit is contained in:
parent
dd88de0ebd
commit
f685e83030
26 changed files with 82 additions and 167 deletions
|
@ -297,8 +297,7 @@ class random_qtype extends default_questiontype {
|
|||
$response = "random$realqid-$response";
|
||||
|
||||
// ... and save it again.
|
||||
if (!$DB->set_field('question_states', 'answer', $response, array('id' => $state->id))) {
|
||||
}
|
||||
$DB->set_field('question_states', 'answer', $response, array('id' => $state->id));
|
||||
|
||||
// Restore the real id
|
||||
$wrappedquestion->id = $realqid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue