Skip to content

Commit

Permalink
fix issue for xapi learning progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe-Kohnle committed Nov 12, 2024
1 parent 651539e commit c7b7834
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Modules/CmiXapi/classes/class.ilCmiXapiResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,12 @@ public static function getResultsForObject(int $objId): array

$results = [];

if ($row = $DIC->database()->fetchAssoc($res)) {
while ($row = $DIC->database()->fetchAssoc($res)) {
$result = new self();
$result->assignFromDbRow($row);

$results[$result->getUsrId()] = $result;
}

return $results;
}
}

0 comments on commit c7b7834

Please sign in to comment.