diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-04-04 11:06:11 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-04-04 11:06:11 +0000 |
| commit | cba3934cff0198686a3a6fe8d14f9878847a4e8c (patch) | |
| tree | 5ec1a4ffa8e07610a65588fc355371f6e4ee229a /lib/classes/coursewizardsteps/BasicDataWizardStep.php | |
| parent | ea611ecd35d7adc989c622edba64ec51b32d63a5 (diff) | |
fixes #3890
Closes #3890
Merge request studip/studip!2741
Diffstat (limited to 'lib/classes/coursewizardsteps/BasicDataWizardStep.php')
| -rw-r--r-- | lib/classes/coursewizardsteps/BasicDataWizardStep.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/coursewizardsteps/BasicDataWizardStep.php b/lib/classes/coursewizardsteps/BasicDataWizardStep.php index 4f424e8..58fb09f 100644 --- a/lib/classes/coursewizardsteps/BasicDataWizardStep.php +++ b/lib/classes/coursewizardsteps/BasicDataWizardStep.php @@ -356,9 +356,9 @@ class BasicDataWizardStep implements CourseWizardStep htmlReady(get_title_for_status('dozent', 1, $values['coursetype'])) ); } - if (!$values['lecturers'][$GLOBALS['user']->id] && !$GLOBALS['perm']->have_perm('admin')) { + if (empty($values['lecturers'][$GLOBALS['user']->id]) && !$GLOBALS['perm']->have_perm('admin')) { if (Config::get()->DEPUTIES_ENABLE) { - if (!$values['deputies'][$GLOBALS['user']->id]) { + if (empty($values['deputies'][$GLOBALS['user']->id])) { $errors[] = sprintf( _('Sie selbst müssen entweder als %s oder als Vertretung eingetragen sein.'), htmlReady(get_title_for_status('dozent', 1, $values['coursetype'])) |
