diff --git a/importexport/inc/class.importexport_import_csv.inc.php b/importexport/inc/class.importexport_import_csv.inc.php index 51750fcb04..b2aa3bec92 100755 --- a/importexport/inc/class.importexport_import_csv.inc.php +++ b/importexport/inc/class.importexport_import_csv.inc.php @@ -368,7 +368,7 @@ class importexport_import_csv implements importexport_iface_import_record { //, $record[$name] = date('Y-m-d H:i:s', $record[$name]); } } - if(strlen(trim($record[$name])) == 0) + if(array_key_exists($name, $record) && strlen(trim($record[$name])) == 0) { $record[$name] = null; } @@ -392,7 +392,7 @@ class importexport_import_csv implements importexport_iface_import_record { //, $record[$name] = date('Y-m-d', $record[$name]); } } - if(strlen(trim($record[$name])) == 0) + if(array_key_exists($name, $record) && strlen(trim($record[$name])) == 0) { $record[$name] = null; }