Skip to content

Commit

Permalink
PRG: 39836, fix LP check for user not being assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaagen authored and klees committed Jan 22, 2024
1 parent 4c74f70 commit 1e0e1cd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ protected static function getAssignments(int $obj_id, int $usr_id = null): array
*/
protected static function getStatusForAssignments(array $assignments, int $prg_obj_id): int
{
if($assignments === []) {
return ilLPStatus::LP_STATUS_NOT_ATTEMPTED_NUM;
}
$now = new DateTimeImmutable();
$pgss = [];
$sorting = [];
Expand Down

0 comments on commit 1e0e1cd

Please sign in to comment.