From c4ce6b84d787496d4b38d0173357878b7cd32368 Mon Sep 17 00:00:00 2001 From: Riedler Date: Sun, 25 Aug 2024 19:15:30 +0200 Subject: [PATCH] fix: inverted course enabled check in get_all_modules fixes #8 --- lbplanner/services/modules/get_all_modules.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lbplanner/services/modules/get_all_modules.php b/lbplanner/services/modules/get_all_modules.php index 9d065dd..67ee393 100644 --- a/lbplanner/services/modules/get_all_modules.php +++ b/lbplanner/services/modules/get_all_modules.php @@ -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(