Try field mapping for both parts of column count check

This commit is contained in:
Nathan Gray 2012-10-10 18:39:03 +00:00
parent 20908f688e
commit d06f3a82ee

View File

@ -294,7 +294,7 @@
$data = translation::convert($data,$options['charset']);
$ok = true;
if(count($data) != count($options['field_mapping']) && max(array_keys($data)) != max(array_keys($options['csv_fields'])))
if(count($data) != count($options['field_mapping']) && max(array_keys($data)) != max(array_keys($options['field_mapping'])))
{
$message[] = lang("Column mismatch. Expected %1 columns, your file has %2.",
count($options['field_mapping']),