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:
Olivier Mehani 2016-09-29 20:39:36 +10:00 committed by Morris Jobke
parent 1e60c5a164
commit 99f7315ed5
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}