From 9a16620745928e852f91bcb4e8f73fbd131ad24c Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms Date: Thu, 12 Feb 2026 13:15:31 +0100 Subject: fix error from e961496d, re #6224 --- lib/models/Course.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/models/Course.class.php b/lib/models/Course.class.php index 7b86f92..a8b9bbf 100644 --- a/lib/models/Course.class.php +++ b/lib/models/Course.class.php @@ -448,6 +448,7 @@ class Course extends SimpleORMap implements Range, PrivacyObject, StudipItem, Fe if (count($this->semesters) > 0) { return $this->semesters->last(); } + return null; } /** -- cgit v1.0