diff --git a/classes/modules/turnitin_quiz.class.php b/classes/modules/turnitin_quiz.class.php index 93ed24e2..38f98f19 100644 --- a/classes/modules/turnitin_quiz.class.php +++ b/classes/modules/turnitin_quiz.class.php @@ -87,6 +87,7 @@ public function update_mark($attemptid, $identifier, $userid, $grade, $quizgrade foreach ($attempt->get_slots() as $slot) { $answer = $attempt->get_question_attempt($slot)->get_response_summary(); // Check if this is the slot the mark is for by matching content. + $answerslot = $answer ? $answer.$slot : $slot; if (sha1($answerslot) == $identifier) { // Translate the TFS grade to a mark for the question.