Skip to content

Commit

Permalink
fix: inverted course enabled check in get_all_modules
Browse files Browse the repository at this point in the history
fixes #8
  • Loading branch information
RiedleroD committed Sep 30, 2024
1 parent 0262cc8 commit c4ce6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lbplanner/services/modules/get_all_modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static function get_all_modules(): array {
$ekenabled = $plan["enableek"];

foreach ($courses as $course) {
if ($course->enabled) {
if (!$course->enabled) {
continue;
}
$modules = array_merge(
Expand Down

0 comments on commit c4ce6b8

Please sign in to comment.