Use flag to tell Contacts we want to save the picture

This commit is contained in:
nathangray 2018-09-05 13:29:58 -06:00
parent f87244f6db
commit 560bc51b8d

View File

@ -163,6 +163,12 @@ class addressbook_import_vcard implements importexport_iface_import_plugin {
$record['owner'] = $owner;
// If photo is set, we want to update it
if($record['jpegphoto'])
{
$record['photo_unchanged'] = false;
}
// Check that owner (addressbook) is allowed
if(!array_key_exists($record['owner'], $this->bocontacts->get_addressbooks()))
{