Changed abbr name to initial firstname and full lastname

This commit is contained in:
Frank Schubert
2023-04-04 20:36:08 +02:00
parent e2345cb08f
commit e7c954adfb

View File

@@ -120,11 +120,12 @@ class User extends mfBaseModel {
//var_dump($m);exit;
$abbr = "$firstname ";
$abbr = substr($firstname, 0, 1). ". ";
if($middlename) {
$abbr .= substr($middlename, 0, 1). ". ";
}
$abbr .= substr($lastname, 0, 1). ". ";
$abbr .= $lastname;
return $abbr;
}