mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Unset user PHOTO before setting new one in OCA\DAV\CardDAV\Converter::updateCard (#26243)
Signed-off-by: Olivier Mehani <shtrom@ssji.net> #26242
This commit is contained in:
parent
1e60c5a164
commit
99f7315ed5
1 changed files with 1 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ class Converter {
|
|||
}
|
||||
|
||||
if($this->propertyNeedsUpdate($vCard, 'PHOTO', $image)) {
|
||||
unset($vCard->PHOTO);
|
||||
$vCard->add('PHOTO', $image->data(), ['ENCODING' => 'b', 'TYPE' => $image->mimeType()]);
|
||||
$updated = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue