aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-07 13:51:48 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-07 13:51:48 +0000
commit08d02aa1fe9bd0d1e7862137b7f1ff98dcbf66d2 (patch)
tree33aa5b78494d91d9ea2839b47cf65da3148984f3 /lib
parent95d79f130e55a68649f603df38a2b895c59d23ab (diff)
fixes #4128
Closes #4128 Merge request studip/studip!2971
Diffstat (limited to 'lib')
-rw-r--r--lib/classes/MVV.class.php2
-rw-r--r--lib/classes/coursewizardsteps/BasicDataWizardStep.php5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/classes/MVV.class.php b/lib/classes/MVV.class.php
index 67bbbeb..517514c 100644
--- a/lib/classes/MVV.class.php
+++ b/lib/classes/MVV.class.php
@@ -843,7 +843,7 @@ class MVV implements Loggable {
public static function getContentLanguageImagePath($language): string
{
$content_language = $GLOBALS['MVV_MODUL_DESKRIPTOR']['SPRACHE']['values'][$language]['content_language'];
- return 'languages/' . ($GLOBALS['CONTENT_LANGUAGES'][$content_language]?$GLOBALS['CONTENT_LANGUAGES'][$content_language]['picture']:'lang_' . mb_strtolower($language) . '.gif');
+ return 'languages/' . ($GLOBALS['CONTENT_LANGUAGES'][$content_language]['picture'] ?? 'lang_' . mb_strtolower($language) . '.gif');
}
}
diff --git a/lib/classes/coursewizardsteps/BasicDataWizardStep.php b/lib/classes/coursewizardsteps/BasicDataWizardStep.php
index 58fb09f..6a1438f 100644
--- a/lib/classes/coursewizardsteps/BasicDataWizardStep.php
+++ b/lib/classes/coursewizardsteps/BasicDataWizardStep.php
@@ -620,7 +620,10 @@ class BasicDataWizardStep implements CourseWizardStep
}
}
-
+ } else {
+ foreach ($indices as $index) {
+ $values[$index] = $values[$index] ?? '';
+ }
}
return $values;