mirror of https://github.com/nextcloud/contacts
Add isset check for PHOTO in SocialApiService
Signed-off-by: Anna Larch <anna@nextcloud.com>
This commit is contained in:
parent
714f079c19
commit
344730d161
|
@ -227,9 +227,10 @@ class SocialApiService {
|
|||
$changes = [];
|
||||
$changes['URI'] = $contact['URI'];
|
||||
$changes['VERSION'] = $contact['VERSION'];
|
||||
|
||||
$this->addPhoto($changes, $imageType, base64_encode($socialdata));
|
||||
|
||||
if (isset($contact['PHOTO']) && $changes['PHOTO'] === $contact['PHOTO']) {
|
||||
if (isset($changes['PHOTO'], $contact['PHOTO']) && $changes['PHOTO'] === $contact['PHOTO']) {
|
||||
return new JSONResponse([], Http::STATUS_NOT_MODIFIED);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue