From a20f4f2904f12e6b90aac2efdc5be3472cd74375 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 27 Mar 2016 17:20:21 -0400 Subject: Improve UserHelper::getInitials() --- app/Helper/UserHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Helper') 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); } -- cgit v1.2.3