mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +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
|
@ -139,9 +139,7 @@ function quiz_add_quiz_question($id, &$quiz, $page = 0) {
|
|||
|
||||
// Save new questionslist in database
|
||||
$quiz->questions = implode(',', $questions);
|
||||
if (!$DB->set_field('quiz', 'questions', $quiz->questions, array('id' => $quiz->id))) {
|
||||
print_error('cannotsavequestion', 'quiz');
|
||||
}
|
||||
$DB->set_field('quiz', 'questions', $quiz->questions, array('id' => $quiz->id));
|
||||
|
||||
// update question grades
|
||||
$quiz->grades[$id] = $DB->get_field('question', 'defaultgrade', array('id' => $id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue