From b29e20646b7709f0954245d99a29f6363fabb052 Mon Sep 17 00:00:00 2001 From: jack-tii <157608350+jack-tii@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:17:11 +0100 Subject: [PATCH] Revert "Fix unit test - Resolves issue #659" --- classes/modules/turnitin_quiz.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/classes/modules/turnitin_quiz.class.php b/classes/modules/turnitin_quiz.class.php index 75519115..059f03ef 100644 --- a/classes/modules/turnitin_quiz.class.php +++ b/classes/modules/turnitin_quiz.class.php @@ -82,8 +82,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 : $answer; - if (sha1($answerslot) == $identifier) { + if (sha1($answer.$slot) == $identifier) { // Translate the TFS grade to a mark for the question. $questionmaxmark = $attempt->get_question_attempt($slot)->get_max_mark();