Accept broken vcards from Outlook that only supply ORG but not the required N or FN properties

pull/164/merge
Thomas Bruederli 10 years ago
parent 5b6d09ad29
commit f0405b4bae

@ -149,6 +149,11 @@ class rcube_vcard
$this->email[0] = $this->email[$pref_index];
$this->email[$pref_index] = $tmp;
}
// fix broken vcards from Outlook that only supply ORG but not the required N or FN properties
if (!strlen(trim($this->displayname . $this->surname . $this->firstname)) && strlen($this->organization)) {
$this->displayname = $this->organization;
}
}
/**

Loading…
Cancel
Save