add mendatory fields again which got lost by the patches of Patrick Bihan-Faou

This commit is contained in:
Cornelius Weiß 2007-10-31 21:02:04 +00:00
parent f0457e8fee
commit eb3dd68d45

View File

@ -127,9 +127,10 @@ class vcaladdressbook extends bocontacts
$values[] = $value;
}
if ($hasdata <= 0)
if ($hasdata <= 0 && !in_array($vcardField,array('FN','ORG','N')))
{
// don't add the entry if there is no data for this field
// don't add the entry if there is no data for this field,
// except it's a mendatory field
continue;
}