diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-11-30 10:07:47 +0000 |
|---|---|---|
| committer | Till Glöggler <tgloeggl@uos.de> | 2022-11-30 10:07:47 +0000 |
| commit | 42c9c67e4d9b1d424129d8110bc49d02fca82ecd (patch) | |
| tree | 66813f21fc70c10ef96967aee6c15909b9f21489 /lib | |
| parent | 5d86de14a9f056a39072888e4f0fe61d4647510e (diff) | |
fixes #1815
Closes #1815
Merge request studip/studip!1207
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/models/ConsultationBlock.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/models/ConsultationBlock.php b/lib/models/ConsultationBlock.php index 55c31dc..e7140e3 100644 --- a/lib/models/ConsultationBlock.php +++ b/lib/models/ConsultationBlock.php @@ -104,9 +104,7 @@ class ConsultationBlock extends SimpleORMap implements PrivacyObject $persons[] = $block->range; } elseif ($block->range instanceof Course) { $persons = ConsultationResponsibility::getCourseResponsibilities($block->range); - } elseif ($block->range instanceof Institute) { - $persons = ConsultationResponsibility::getInstituteResponsibilites($block->range); - } else { + } elseif (!($block->range instanceof Institute)) { throw new Exception('Unknown range type'); } |
