We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f4401c commit 0093263Copy full SHA for 0093263
1 file changed
library/Icingadb/View/UserRenderer.php
@@ -27,7 +27,7 @@ public function assembleVisual($item, HtmlDocument $visual, string $layout): voi
27
$visual->addHtml(
28
(new Ball($layout === 'minimal' ? Ball::SIZE_BIG : Ball::SIZE_LARGE))
29
->addAttributes(['class' => 'user-ball'])
30
- ->addHtml(Text::create($item->display_name[0]))
+ ->addHtml(Text::create(grapheme_substr($item->display_name, 0, 1)))
31
);
32
}
33
0 commit comments