From d50e8a1bda94fc06f2f455f2b3ef5a93d30480fe Mon Sep 17 00:00:00 2001 From: Davo Smith Date: Tue, 1 May 2012 10:17:08 +0100 Subject: [PATCH] MDL-32698 Question - Fixed typos in load_question_attempt --- question/engine/datalib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/engine/datalib.php b/question/engine/datalib.php index 8bf34a03174..e7f570ea5a1 100644 --- a/question/engine/datalib.php +++ b/question/engine/datalib.php @@ -265,7 +265,7 @@ SELECT 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 @@ ORDER BY 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();