Skip to content
Snippets Groups Projects
Commit 6eb8fe0a authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by Jan-Hendrik Willms
Browse files

prevent warning, fixes #1741

Closes #1741

Merge request studip/studip!1134
parent da99b611
No related branches found
No related tags found
No related merge requests found
...@@ -396,10 +396,12 @@ class LVGroupsWizardStep implements CourseWizardStep ...@@ -396,10 +396,12 @@ class LVGroupsWizardStep implements CourseWizardStep
$category = SeminarCategories::GetByTypeId($coursetype); $category = SeminarCategories::GetByTypeId($coursetype);
if ($category->bereiche) { if ($category->bereiche) {
if (isset($values['StudyAreasLVGroupsCombinedWizardStep']) if (
&& !count($values['StudyAreasLVGroupsCombinedWizardStep']['studyareas']) isset($values['StudyAreasLVGroupsCombinedWizardStep'])
&& !count($values[__CLASS__]['lvgruppe_selection']['areas']) && empty($values['StudyAreasLVGroupsCombinedWizardStep']['studyareas'])
&& $values[__CLASS__]['step'] > $values['StudyAreasLVGroupsCombinedWizardStep']['step']) { && empty($values[__CLASS__]['lvgruppe_selection']['areas'])
&& $values[__CLASS__]['step'] > $values['StudyAreasLVGroupsCombinedWizardStep']['step']
) {
$ok = false; $ok = false;
$errors[] = _('Die Veranstaltung muss mindestens einem Studienbereich oder einer LV-Gruppe zugeordnet sein.'); $errors[] = _('Die Veranstaltung muss mindestens einem Studienbereich oder einer LV-Gruppe zugeordnet sein.');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment