From 00c300692fa599b8df0849e06d95a3dde20b83c5 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 4 Aug 2006 16:47:57 +0000 Subject: [PATCH] Fix whitespace. --- mod/quiz/attempt.php | 2 +- question/type/match/questiontype.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mod/quiz/attempt.php b/mod/quiz/attempt.php index 083d9269ea..6260229fe6 100644 --- a/mod/quiz/attempt.php +++ b/mod/quiz/attempt.php @@ -415,7 +415,7 @@ $action->responses = $closestates[$key]->responses; $action->timestamp = $closestates[$key]->timestamp; question_process_responses($question, $closestates[$key], $action, $quiz, $attempt); - save_question_session($question, $closestates[$key]); + save_question_session($question, $closestates[$key]); } } add_to_log($course->id, 'quiz', 'close attempt', diff --git a/question/type/match/questiontype.php b/question/type/match/questiontype.php index 3d1a48d3a2..e1ba2a76be 100644 --- a/question/type/match/questiontype.php +++ b/question/type/match/questiontype.php @@ -111,9 +111,9 @@ class question_match_qtype extends default_questiontype { function create_session_and_responses(&$question, &$state, $cmoptions, $attempt) { if (!$state->options->subquestions = get_records('question_match_sub', - 'question', $question->id)) { - notify('Error: Missing subquestions!'); - return false; + 'question', $question->id)) { + notify('Error: Missing subquestions!'); + return false; } foreach ($state->options->subquestions as $key => $subquestion) { @@ -126,7 +126,7 @@ class question_match_qtype extends default_questiontype { $answer->answer = $subquestion->answertext; $answer->fraction = 1.0; $state->options->subquestions[$key]->options - ->answers[$subquestion->code] = clone($answer); + ->answers[$subquestion->code] = clone($answer); $state->responses[$key] = ''; } -- 2.39.5