csv importer - fix error with enclosure character

This commit is contained in:
eduardohumberto 2018-08-01 18:24:19 -03:00
parent e569973fbf
commit 5503096a42
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class CSV extends Importer {
$file->seek(0);
$columns = [];
$rawColumns = $file->fgetcsv( $this->get_option('delimiter') );
$rawColumns = str_getcsv( $file->fgets(), $this->get_option('delimiter'), $this->get_option('enclosure') );
if( $rawColumns ){
foreach( $rawColumns as $index => $rawColumn ){