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
|
@ -92,6 +92,7 @@ class Converter {
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->propertyNeedsUpdate($vCard, 'PHOTO', $image)) {
|
if($this->propertyNeedsUpdate($vCard, 'PHOTO', $image)) {
|
||||||
|
unset($vCard->PHOTO);
|
||||||
$vCard->add('PHOTO', $image->data(), ['ENCODING' => 'b', 'TYPE' => $image->mimeType()]);
|
$vCard->add('PHOTO', $image->data(), ['ENCODING' => 'b', 'TYPE' => $image->mimeType()]);
|
||||||
$updated = true;
|
$updated = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue