diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-09-30 10:15:54 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-09-30 10:15:54 +0000 |
| commit | 8e9222919fa9cc06dcfbbeb10e12667c6bd95b26 (patch) | |
| tree | 74354ce945c00d09a56f90c61188d1d8c180276b /lib/classes/coursewizardsteps/BasicDataWizardStep.php | |
| parent | b4b0e9687ec5e9dd5eb6eeb629e6486c8efb8744 (diff) | |
prevent many warnings regarding php8 on main, fixes #4631
Closes #4631
Merge request studip/studip!3448
Diffstat (limited to 'lib/classes/coursewizardsteps/BasicDataWizardStep.php')
| -rw-r--r-- | lib/classes/coursewizardsteps/BasicDataWizardStep.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/classes/coursewizardsteps/BasicDataWizardStep.php b/lib/classes/coursewizardsteps/BasicDataWizardStep.php index bca6915..53c8c50 100644 --- a/lib/classes/coursewizardsteps/BasicDataWizardStep.php +++ b/lib/classes/coursewizardsteps/BasicDataWizardStep.php @@ -556,9 +556,10 @@ class BasicDataWizardStep implements CourseWizardStep return []; } - public function getSearch($course_type, $institute_ids, $exclude_lecturers = [],$exclude_tutors = []) + public function getSearch($course_type) { - if (SeminarCategories::getByTypeId($course_type)->only_inst_user) { + $category = SeminarCategories::getByTypeId($course_type); + if ($category && $category->only_inst_user) { $search = 'user_inst'; } else { $search = 'user'; |
