diff --git a/importexport/inc/class.importexport_import_csv.inc.php b/importexport/inc/class.importexport_import_csv.inc.php index b536a2946b..56977915a1 100755 --- a/importexport/inc/class.importexport_import_csv.inc.php +++ b/importexport/inc/class.importexport_import_csv.inc.php @@ -358,7 +358,7 @@ class importexport_import_csv implements importexport_iface_import_record { //, if ($record[$name]) { // Automatically handle text owner without explicit translation $new_owner = importexport_helper_functions::account_name2id($record[$name]); - if(count($new_owner) != count(explode(',',$record[$name]))) + if(!is_array($new_owner) || count($new_owner) != count(explode(',', $record[$name]))) { // Unable to parse value into account $warnings[] = $name . ': ' .lang('%1 is not a known user or group', $record[$name]);