Skip to content

Commit 0093263

Browse files
committed
Handle unicode in contact names
1 parent 8f4401c commit 0093263

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/Icingadb/View/UserRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function assembleVisual($item, HtmlDocument $visual, string $layout): voi
2727
$visual->addHtml(
2828
(new Ball($layout === 'minimal' ? Ball::SIZE_BIG : Ball::SIZE_LARGE))
2929
->addAttributes(['class' => 'user-ball'])
30-
->addHtml(Text::create($item->display_name[0]))
30+
->addHtml(Text::create(grapheme_substr($item->display_name, 0, 1)))
3131
);
3232
}
3333

0 commit comments

Comments
 (0)