Update website

This commit is contained in:
Guilhem Lavaux 2024-11-23 21:18:48 +01:00
parent 560432ad3b
commit 0591a4aeb4

View File

@ -142,7 +142,10 @@ function convertFirstNameToInitial($name) {
if (strpos($part, '-') !== false) { if (strpos($part, '-') !== false) {
$hyphenParts = explode('-', $part); $hyphenParts = explode('-', $part);
$initials = array_map(function($p) { $initials = array_map(function($p) {
if (!empty($p)) {
return ucfirst($p[0]) . '.'; return ucfirst($p[0]) . '.';
}
return '';
}, $hyphenParts); }, $hyphenParts);
return implode('-', $initials); return implode('-', $initials);
} }