Set header content type for avatar

This commit is contained in:
Hadi Nategh 2019-01-16 16:48:05 +01:00
parent 7f138c8ad9
commit a9dc895ca6

View File

@ -2613,6 +2613,7 @@ class Contacts extends Contacts\Storage
{ {
if (is_array($contact)) if (is_array($contact))
{ {
header('Content-type: image/jpeg');
echo \EGroupware\Api\avatar::lavatar(array( echo \EGroupware\Api\avatar::lavatar(array(
'id' => $contact['id'], 'id' => $contact['id'],
'firstname' => $contact['n_given'], 'firstname' => $contact['n_given'],