Merge pull request #1719 from nextcloud/stable9-backport-1580

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