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