aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-19 08:30:30 +0200
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-22 14:28:10 +0200
commite6730ed107b1bbe9902a3cd4401f192d7b8238fc (patch)
tree7e0eba4de981cbdb6e60f8770d79a84f8a62e21f /lib
parent3b6144170577c599ab2db5966305637c6cd7d4d4 (diff)
prevent warnings, fixes #5892
Closes #5892 Merge request studip/studip!4493
Diffstat (limited to 'lib')
-rw-r--r--lib/classes/DataFieldSelectboxEntry.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/classes/DataFieldSelectboxEntry.class.php b/lib/classes/DataFieldSelectboxEntry.class.php
index 8ac1a3c..bb2d321 100644
--- a/lib/classes/DataFieldSelectboxEntry.class.php
+++ b/lib/classes/DataFieldSelectboxEntry.class.php
@@ -93,7 +93,7 @@ class DataFieldSelectboxEntry extends DataFieldEntry
public function getDisplayValue($entities = true)
{
$value = $this->is_assoc_param
- ? $this->type_param[$this->getValue()]
+ ? $this->type_param[$this->getValue()] ?? ''
: $this->getValue();
return $entities ? htmlReady($value) : $value;
}