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:17:40 +00:00
parent ba380b7540
commit 1509ae821e

View File

@ -127,9 +127,10 @@ class vcaladdressbook extends bocontacts
$values[] = $value; $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; continue;
} }