mirror of
https://github.com/nextcloud/mail.git
synced 2025-07-23 02:57:02 +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)) {
|
if (is_resource($body)) {
|
||||||
$body = stream_get_contents($body);
|
$body = stream_get_contents($body);
|
||||||
}
|
}
|
||||||
if (strlen($body) === 0) {
|
if ($body === null || strlen($body) === 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user