Skip to content

Commit

Permalink
MDL-32698 Question - Fixed typos in load_question_attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
davosmith authored and danpoltawski committed May 7, 2012
1 parent 787a484 commit 9da363f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions question/engine/datalib.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function load_question_attempt($questionattemptid) {
qasd.name,
qasd.value
FROM {question_attempts qa
FROM {question_attempts} qa
JOIN {question_usages} quba ON quba.id = qa.questionusageid
LEFT JOIN {question_attempt_steps} qas ON qas.questionattemptid = qa.id
LEFT JOIN {question_attempt_step_data} qasd ON qasd.attemptstepid = qas.id
Expand All @@ -281,7 +281,7 @@ public function load_question_attempt($questionattemptid) {
throw new coding_exception('Failed to load question_attempt ' . $questionattemptid);
}

$record = current($records);
$record = $records->current();
$qa = question_attempt::load_from_records($records, $questionattemptid,
new question_usage_null_observer(), $record->preferredbehaviour);
$records->close();
Expand Down

0 comments on commit 9da363f

Please sign in to comment.