From d59b623cb4163bb65e0d5b9b8944807ef042192c Mon Sep 17 00:00:00 2001 From: chfhtw Date: Fri, 25 Jul 2025 13:17:41 +0200 Subject: [PATCH] Bugfix: Return no events instead of error if the student is/was not enrolled in a timeframe --- application/libraries/StundenplanLib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/StundenplanLib.php b/application/libraries/StundenplanLib.php index 0107ceef1..50835873e 100644 --- a/application/libraries/StundenplanLib.php +++ b/application/libraries/StundenplanLib.php @@ -109,7 +109,7 @@ class StundenplanLib{ $stundenplan_query = $this->_ci->StundenplanModel->getStundenplanQuery($start_date, $end_date, $semester_range, $benutzer_gruppen, $student_lehrverband); if(!$stundenplan_query) { - return error([]); + return success([]); }