Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
labomatik authored Sep 24, 2024
1 parent 7af15ae commit 2a1147f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 2a1147f

Please sign in to comment.