Skip to content

Commit

Permalink
Force string type on DCL text fields (ILIAS-eLearning#7773)
Browse files Browse the repository at this point in the history
  • Loading branch information
iszmais authored Jul 4, 2024
1 parent aeb8063 commit d6ba734
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,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 d6ba734

Please sign in to comment.