diff options
| author | David Siegfried <david.siegfried@uni-vechta.de> | 2022-11-09 10:08:12 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-11-09 10:08:12 +0000 |
| commit | 35deb3da569c263854529853242689e4cd61e015 (patch) | |
| tree | 57bd4d474d0802912915a9e7291a9d2d1ee83a4d /lib/models/CourseEvent.class.php | |
| parent | 7cf4260c0ecc4fc39e4871ae03e426f7b1c2512b (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.php | 2 |
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 { |
