summaryrefslogtreecommitdiff
path: root/app/User/Avatar/LetterAvatarProvider.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-29 20:44:45 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-29 20:44:45 -0400
commit57fd0aa78ef78e945260adf83fc745bc09b3a7db (patch)
tree0d4920c3ed2161d70ba2afb09741cab2a59aa01a /app/User/Avatar/LetterAvatarProvider.php
parent843f844dde4da56bde62ef27626cbcb1c4ef5a0b (diff)
parent41f753d02733aa3c2c879caf5d914feb76c54388 (diff)
Merge pull-request #2066
Diffstat (limited to 'app/User/Avatar/LetterAvatarProvider.php')
-rw-r--r--app/User/Avatar/LetterAvatarProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/User/Avatar/LetterAvatarProvider.php b/app/User/Avatar/LetterAvatarProvider.php
index cf04f2a7..f9659e61 100644
--- a/app/User/Avatar/LetterAvatarProvider.php
+++ b/app/User/Avatar/LetterAvatarProvider.php
@@ -31,7 +31,7 @@ class LetterAvatarProvider extends Base implements AvatarProviderInterface
public function render(array $user, $size)
{
$initials = $this->helper->user->getInitials($user['name'] ?: $user['username']);
- $rgb = $this->getBackgroundColor($initials);
+ $rgb = $this->getBackgroundColor($user['name'] ?: $user['username']);
return sprintf(
'<div class="avatar-letter" style="background-color: rgb(%d, %d, %d)" title="%s">%s</div>',