fix for: if no cf import fails with fatal error

This commit is contained in:
Klaus Leithoff 2009-07-15 14:22:29 +00:00
parent 7c3f249f71
commit ab20b324e0

View File

@ -159,7 +159,7 @@ switch($_POST['action'])
$addr_names['bday'] .= ': YYYY-mm-dd'; $addr_names['bday'] .= ': YYYY-mm-dd';
$addr_names['uid'] = lang('Unique ID (UID)'); $addr_names['uid'] = lang('Unique ID (UID)');
unset($addr_names['jpegphoto']); // cant cvs import that unset($addr_names['jpegphoto']); // cant cvs import that
$cfs=array();
foreach($bocontacts->customfields as $name => $data) foreach($bocontacts->customfields as $name => $data)
{ {
$cfs['#'.$name] = $addr_names['#'.$name] = $data['label']; $cfs['#'.$name] = $addr_names['#'.$name] = $data['label'];