aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/I18NString.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-02-20 18:03:41 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2023-02-20 18:03:41 +0000
commit057418dd63bc2b95a3658a0fc6d691fa150f8e41 (patch)
tree4ebf84b65ff6a4d71f9bb861e5ec4c098fcce57d /lib/classes/I18NString.php
parent0cdfc0508f6d22efc0f3f0ff325c7ddd748cb545 (diff)
prevent php8 warnings (sixth batch of changes), re #2193
Merge request studip/studip!1430
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 b8d666b..63c8ba6 100644
--- a/lib/classes/I18NString.php
+++ b/lib/classes/I18NString.php
@@ -181,7 +181,7 @@ class I18NString implements JsonSerializable
*/
public function translation($lang)
{
- return $this->toArray()[$lang];
+ return $this->toArray()[$lang] ?? '';
}
/**