update comment avatar when emails is empty

This commit is contained in:
Simon Vieille 2021-11-23 22:54:26 +01:00
parent b6dd9f2347
commit 026f5a4666
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ class Comment implements EntityInterface
*/ */
public function getAvatar(): string public function getAvatar(): string
{ {
return 'https://secure.gravatar.com/avatar/'.md5($this->getEmail()).'.jpg?s=90&d=retro'; return 'https://secure.gravatar.com/avatar/'.md5($this->getEmail() ?? 'undefined@undefined').'.jpg?s=90&d=retro';
} }
/** /**