Skip to content

Commit

Permalink
relax equality looking for correct t/f answer
Browse files Browse the repository at this point in the history
  • Loading branch information
milt committed Nov 20, 2024
1 parent 8fc1c51 commit 22a56ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transformer/utils/get_activity/definition/question.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,9 @@ function get_true_false_definition(array $config, \stdClass $question, string $l
$correctanswerobjarr = array_filter(
$answers,
function ($answer) {
return $answer->fraction === 1.0;
return $answer->fraction == 1.0;
}

);
$correctanswerobj = reset(
$correctanswerobjarr
Expand Down

0 comments on commit 22a56ae

Please sign in to comment.