diff --git a/src/Avatar.php b/src/Avatar.php index 0d2061f..8e8179c 100644 --- a/src/Avatar.php +++ b/src/Avatar.php @@ -422,7 +422,7 @@ protected function getRandomElement($array, $default) $array = array_values($array); $name = $this->name; - if (strlen($name) === 0) { + if (blank($name) || strlen($name) === 0) { $name = chr(rand(65, 90)); }