From e7c954adfb2326041b88434da15e42e908498a83 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 4 Apr 2023 20:36:08 +0200 Subject: [PATCH] Changed abbr name to initial firstname and full lastname --- application/User/User.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/User/User.php b/application/User/User.php index cfd9bf9df..62aa16132 100644 --- a/application/User/User.php +++ b/application/User/User.php @@ -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; }