csv importer - fix error with enclosure character
This commit is contained in:
parent
e569973fbf
commit
5503096a42
|
@ -33,7 +33,7 @@ class CSV extends Importer {
|
||||||
$file->seek(0);
|
$file->seek(0);
|
||||||
|
|
||||||
$columns = [];
|
$columns = [];
|
||||||
$rawColumns = $file->fgetcsv( $this->get_option('delimiter') );
|
$rawColumns = str_getcsv( $file->fgets(), $this->get_option('delimiter'), $this->get_option('enclosure') );
|
||||||
|
|
||||||
if( $rawColumns ){
|
if( $rawColumns ){
|
||||||
foreach( $rawColumns as $index => $rawColumn ){
|
foreach( $rawColumns as $index => $rawColumn ){
|
||||||
|
|
Loading…
Reference in New Issue