From 5503096a42cc38d5d989c4a3a097e91f9c215ad9 Mon Sep 17 00:00:00 2001 From: eduardohumberto Date: Wed, 1 Aug 2018 18:24:19 -0300 Subject: [PATCH] csv importer - fix error with enclosure character --- src/importer/class-tainacan-csv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/importer/class-tainacan-csv.php b/src/importer/class-tainacan-csv.php index 8c0c4b38b..0355a0a65 100644 --- a/src/importer/class-tainacan-csv.php +++ b/src/importer/class-tainacan-csv.php @@ -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 ){