Update website
This commit is contained in:
parent
560432ad3b
commit
0591a4aeb4
@ -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) {
|
||||||
return ucfirst($p[0]) . '.';
|
if (!empty($p)) {
|
||||||
|
return ucfirst($p[0]) . '.';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
}, $hyphenParts);
|
}, $hyphenParts);
|
||||||
return implode('-', $initials);
|
return implode('-', $initials);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user