Skip to content

Commit

Permalink
Force string type on DCL text fields (ILIAS-eLearning#7772)
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais authored Jul 4, 2024
1 parent 2ac292b commit 0ab22eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function getHTML(bool $link = true, array $options = []): string
'renderRecord'
) . '">' . $value . '</a>';
} else {
$html = (is_array($value) && isset($value['link'])) ? $value['link'] : nl2br($value);
$html = (is_array($value) && isset($value['link'])) ? $value['link'] : nl2br((string) $value);
}

if (!$html) {
Expand Down

0 comments on commit 0ab22eb

Please sign in to comment.