aboutsummaryrefslogtreecommitdiff
path: root/lib/models/CourseEvent.class.php
diff options
context:
space:
mode:
authorDavid Siegfried <david.siegfried@uni-vechta.de>2022-11-09 10:08:12 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-11-09 10:08:12 +0000
commit35deb3da569c263854529853242689e4cd61e015 (patch)
tree57bd4d474d0802912915a9e7291a9d2d1ee83a4d /lib/models/CourseEvent.class.php
parent7cf4260c0ecc4fc39e4871ae03e426f7b1c2512b (diff)
Prevent PHP-Warnings, closes #1764
Closes #1764 Merge request studip/studip!1140
Diffstat (limited to 'lib/models/CourseEvent.class.php')
-rw-r--r--lib/models/CourseEvent.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/CourseEvent.class.php b/lib/models/CourseEvent.class.php
index 930c57a..2d564b5 100644
--- a/lib/models/CourseEvent.class.php
+++ b/lib/models/CourseEvent.class.php
@@ -210,7 +210,7 @@ class CourseEvent extends CourseDate implements Event
{
$title = _('Keine Berechtigung.');
if ($this->havePermission(Event::PERMISSION_READABLE)) {
- $description = trim($this->cycle->description) ?: '';
+ $description = $this->cycle ? trim($this->cycle->description) : '';
if (sizeof($this->topics)) {
$title = $this->course->name.": ".implode(', ', $this->topics->pluck('title'));
} else {