Skip to content

Commit

Permalink
MDL-44053 question restore from 2.0: fix regression from MDL-43670
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Feb 9, 2014
1 parent 974c2cd commit 029870e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions question/engine/upgrade/upgradelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,10 @@ protected function load_question($questionid, $quizid) {

if ($quizid) {
$question = $DB->get_record_sql("
SELECT q.*, qqi.grade AS maxmark
SELECT q.*, qqi.maxmark
FROM {question} q
JOIN {quiz_question_instances} qqi ON qqi.question = q.id
WHERE q.id = $questionid AND qqi.quiz = $quizid");
JOIN {quiz_question_instances} qqi ON qqi.questionid = q.id
WHERE q.id = ? AND qqi.quizid = ?", array($questionid, $quizid));
} else {
$question = $DB->get_record('question', array('id' => $questionid));
}
Expand Down

0 comments on commit 029870e

Please sign in to comment.