mirror of
https://github.com/nextcloud/mail.git
synced 2025-07-22 01:09:44 +00:00
fix(avatar): handle null bodies
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
@ -56,7 +56,7 @@ class GravatarSource implements IAvatarSource {
|
||||
if (is_resource($body)) {
|
||||
$body = stream_get_contents($body);
|
||||
}
|
||||
if (strlen($body) === 0) {
|
||||
if ($body === null || strlen($body) === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user