Skip to content

Commit

Permalink
Merge branch 'MDL-44053' of git://github.com/timhunt/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Feb 10, 2014
2 parents 396548f + 029870e commit 395988e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions question/engine/upgrade/upgradelib.php
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 395988e

Please sign in to comment.