mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Merge pull request #598 from tribut/fix-585
Use correct method to extract image from vcard
This commit is contained in:
commit
f71d66164f
@ -311,8 +311,8 @@ Class Properties {
|
||||
$app = new App();
|
||||
$vcard = $app->getContact($backendName, $addressBookId, $contactId);
|
||||
}
|
||||
$image = $vcard->getPhoto();
|
||||
if (is_null($image)) {
|
||||
$image = new \OCP\Image();
|
||||
if (!isset($vcard->PHOTO) || !$image->loadFromBase64((string)$vcard->PHOTO)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user