Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Unset user PHOTO before setting new one in OCA\DAV\CardDAV\Converter:…
…:updateCard (#26243)

Signed-off-by: Olivier Mehani <[email protected]>

#26242
  • Loading branch information
shtrom authored and MorrisJobke committed Oct 12, 2016
commit 99f7315ed5a63d41dd0b053b56e26ef26aa9963c
1 change: 1 addition & 0 deletions apps/dav/lib/CardDAV/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public function updateCard(VCard $vCard, IUser $user) {
}

if($this->propertyNeedsUpdate($vCard, 'PHOTO', $image)) {
unset($vCard->PHOTO);
$vCard->add('PHOTO', $image->data(), ['ENCODING' => 'b', 'TYPE' => $image->mimeType()]);
$updated = true;
}
Expand Down