From c853aa391bee607d422424f51691957f2f6a3546 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Noack?= <noack@data-quest.de>
Date: Tue, 29 Mar 2022 09:02:46 +0000
Subject: [PATCH] =?UTF-8?q?Resolve=20"Anlegen=20neuer=20Veranstaltungen=20?=
 =?UTF-8?q?f=C3=BChrt=20bei=20englischer=20Spracheinstellung=20zu=20Fehler?=
 =?UTF-8?q?"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/classes/coursewizardsteps/BasicDataWizardStep.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/classes/coursewizardsteps/BasicDataWizardStep.php b/lib/classes/coursewizardsteps/BasicDataWizardStep.php
index bb29f06ebb7..f9d3c7f6fe6 100644
--- a/lib/classes/coursewizardsteps/BasicDataWizardStep.php
+++ b/lib/classes/coursewizardsteps/BasicDataWizardStep.php
@@ -403,9 +403,9 @@ class BasicDataWizardStep implements CourseWizardStep
         $course->status = $values['coursetype'];
         $course->start_time = $values['start_time'];
         $course->duration_time = 0;
-        $course->name = new I18NString($values['name'], $values['name_i18n']);
+        $course->name = new I18NString($values['name'], $values['name_i18n'] ?? []);
         $course->veranstaltungsnummer = $values['number'];
-        $course->beschreibung = new I18NString($values['description'], $values['description_i18n']);
+        $course->beschreibung = new I18NString($values['description'], $values['description_i18n'] ?? []);
         $course->institut_id = $values['institute'];
 
         $semclass = $seminar->getSemClass();
-- 
GitLab