Merge pull request #1580 from nextcloud/downstream-26243

Unset user PHOTO before setting new one in OCA\DAV\CardDAV\Converter:…
This commit is contained in:
Lukas Reschke 2016-09-29 21:59:05 +02:00 committed by GitHub
commit 938b0d5597
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;
}