aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2026-02-12 13:15:31 +0100
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2026-02-12 13:15:31 +0100
commit9a16620745928e852f91bcb4e8f73fbd131ad24c (patch)
tree988edb15ae32e7338b0d9df268ccc7c27dd9ff68
parent8a6b1d08a1709460b4d86a18fb7f3d3229336add (diff)
fix error from e961496d, re #6224
-rw-r--r--lib/models/Course.class.php1
1 files changed, 1 insertions, 0 deletions
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;
}
/**