Limit Initials to only 2 characters so it doesnt cause Graphic distorions when displaying in a circle

This commit is contained in:
johnnyq 2023-01-27 20:20:22 -05:00
parent 6f37d22ab5
commit ce11899ecd
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ function initials($str) {
$ret = '';
foreach (explode(' ', $str) as $word)
$ret .= strtoupper($word[0]);
$ret = substr($ret,0, 2);
return $ret;
}
}