Skip to content

Commit

Permalink
38217: Beim Navigieren in einem Kurs kommt es in bestimmten Fällen zu…
Browse files Browse the repository at this point in the history
… einem Fehler
  • Loading branch information
alex40724 committed Oct 13, 2023
1 parent 10a8269 commit a8d2da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/LearningModule/classes/class.ilLMTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getLastActivePage(): int
" ORDER BY lm_tree.rgt DESC";
$set = $ilDB->query($sql);
$row = $ilDB->fetchAssoc($set);
return (int) $row["obj_id"];
return (int) ($row["obj_id"] ?? 0);
}

/**
Expand Down

0 comments on commit a8d2da9

Please sign in to comment.