diff --git a/calendar/csv_import.php b/calendar/csv_import.php index 84d7285f5e..436fd42cae 100644 --- a/calendar/csv_import.php +++ b/calendar/csv_import.php @@ -106,7 +106,7 @@ if (is_numeric($cat) && $GLOBALS['egw']->categories->id2name($cat) != '--') { $cat2id[$cat] = $ids[$cat] = $cat; - } + } elseif ($id = $GLOBALS['egw']->categories->name2id( addslashes($cat) )) { // cat exists $cat2id[$cat] = $ids[$cat] = $id; @@ -182,7 +182,8 @@ $custom_fields = $config->read_repository(); unset($config); //echo "custom-fields=
".print_r($custom_fields,True).""; - foreach ($custom_fields as $name => $data) + if (is_array($custom_fields['customfields'])) + foreach ($custom_fields['customfields'] as $name => $data) { $cal_names['#'.$name] = $data['label'].': Custom field ('.$data['type'].')'; } @@ -481,7 +482,7 @@ $action = $values['id'] ? 'updating' : 'adding'; //echo $action.'
'.print_r($values,True)."\n"; $cal_id = $cal->bo->update($values,true,!$values['modified'],$is_admin); // ignoring conflicts and ACL (for admins) on import - + $log .= "\t\t".'