Skip to content

Commit

Permalink
fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
uyab committed Aug 10, 2016
1 parent 86bb07a commit 1ce5f55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ protected function getRandomForeground()

protected function setRandomFont()
{
$this->font = $this->defaultFont;

$initials = $this->getInitial();

if ($initials) {
Expand All @@ -197,7 +199,6 @@ protected function setRandomFont()
}
}

$this->font = $this->defaultFont;
}

protected function getBorderColor()
Expand Down

0 comments on commit 1ce5f55

Please sign in to comment.