aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/I18NString.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2022-10-17 14:50:20 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2022-10-17 14:50:20 +0000
commit4695506d9ea6d0dce90e16f12ae0bb215ce1a01b (patch)
treea5735282a9fa4f1a5f7112608f5b3310584eb16a /lib/classes/I18NString.php
parent169c42d48f6c9a3e9981dea4713ba0b9176dd41e (diff)
fix php8 warnings, fixes #1679
Closes #1679 Merge request studip/studip!1084
Diffstat (limited to 'lib/classes/I18NString.php')
-rw-r--r--lib/classes/I18NString.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classes/I18NString.php b/lib/classes/I18NString.php
index aebe1c8..b8d666b 100644
--- a/lib/classes/I18NString.php
+++ b/lib/classes/I18NString.php
@@ -332,7 +332,7 @@ class I18NString implements JsonSerializable
$data = [];
foreach (array_keys(Config::get()->CONTENT_LANGUAGES) as $lang) {
if ($lang != self::getDefaultLanguage()) {
- $data[$lang] = mb_strlen($values[$lang]) ? $values[$lang] : null;
+ $data[$lang] = $values[$lang] ?? null;
}
}
return $data;