Skip to content

Commit

Permalink
0033448: Pre8: Opening existing test - "ASS_Mark::__construct(): Argu…
Browse files Browse the repository at this point in the history
…ment #4 ($passed) must be of type int, null given"
  • Loading branch information
mbecker-databay committed Jul 12, 2022
1 parent e7d1513 commit 8a40c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Test/classes/class.assMarkSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public function loadFromDb(int $test_id) : void
if ($result->numRows() > 0) {
/** @noinspection PhpAssignmentInConditionInspection */
while ($data = $ilDB->fetchAssoc($result)) {
$this->addMarkStep($data["short_name"], $data["official_name"], $data["minimum_level"], $data["passed"]);
$this->addMarkStep($data["short_name"], $data["official_name"], (float)$data["minimum_level"], (int)$data["passed"]);
}
}
}
Expand Down

0 comments on commit 8a40c29

Please sign in to comment.