Permalink
Browse files

MDL-32698 Question - Fixed typos in load_question_attempt

  • Loading branch information...
1 parent 787a484 commit 9da363fbc7a3eff77dedaa1f30e2ec1fc5772517 @davosmith davosmith committed with danpoltawski May 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/engine/datalib.php
@@ -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
@@ -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();

0 comments on commit 9da363f

Please sign in to comment.