summaryrefslogtreecommitdiff
path: root/app/Helper
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-27 17:20:21 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-27 17:20:21 -0400
commita20f4f2904f12e6b90aac2efdc5be3472cd74375 (patch)
tree80c574b6a1f11be29cf1fc5d396f82f873fb3988 /app/Helper
parentab082bdb2b675ab4bd13f7b3238143f99f267f68 (diff)
Improve UserHelper::getInitials()
Diffstat (limited to 'app/Helper')
-rw-r--r--app/Helper/UserHelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Helper/UserHelper.php b/app/Helper/UserHelper.php
index ee7d8ba5..c3369dfd 100644
--- a/app/Helper/UserHelper.php
+++ b/app/Helper/UserHelper.php
@@ -34,7 +34,7 @@ class UserHelper extends Base
{
$initials = '';
- foreach (explode(' ', $name) as $string) {
+ foreach (explode(' ', $name, 2) as $string) {
$initials .= mb_substr($string, 0, 1);
}