Skip to content

Commit

Permalink
Test: Fix String of Float Instead of Int as Key
Browse files Browse the repository at this point in the history
  • Loading branch information
kergomard committed Nov 14, 2023
1 parent 479a4dc commit e2a664d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function getSolutionOutput(
foreach ($this->object->answers as $answer) {
$points_string_for_key = (string) $answer->getPoints();
if ($answer->getPoints() > 0) {
if (!array_key_exists($answer->getPoints(), $rank)) {
if (!array_key_exists($points_string_for_key, $rank)) {
$rank[$points_string_for_key] = array();
}
array_push($rank[$points_string_for_key], $answer->getAnswertext());
Expand Down

0 comments on commit e2a664d

Please sign in to comment.