Merge pull request #1717 from nextcloud/stable10-backport-1580

[stable10] Unset user PHOTO before setting new one in OCA\DAV\CardDAV\Converter:…
This commit is contained in:
Joas Schilling 2016-10-12 13:13:35 +02:00 committed by GitHub
commit b4ef49744b
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;
}