Merge branch 'develop' of https://github.com/tainacan/tainacan into develop

This commit is contained in:
weryques 2018-07-23 12:19:37 -03:00
commit 89c052e441
1 changed files with 0 additions and 3 deletions

View File

@ -55,12 +55,9 @@ class CSV extends Importer {
$file->current(); $file->current();
$file->next(); $file->next();
$this->add_log(' Line to parse ' . $file->fgets() );
$this->add_log(' Delimiter to parse' . $this->get_option('delimiter') ); $this->add_log(' Delimiter to parse' . $this->get_option('delimiter') );
$values = str_getcsv( $file->fgets(), $this->get_option('delimiter'), $this->get_option('enclosure') ); $values = str_getcsv( $file->fgets(), $this->get_option('delimiter'), $this->get_option('enclosure') );
}else{ }else{
$this->add_log(' Line to parse ' . $file->fgets() );
$this->add_log(' Delimiter to parse' . $this->get_option('delimiter') ); $this->add_log(' Delimiter to parse' . $this->get_option('delimiter') );
$values = str_getcsv( rtrim($file->fgets()), $this->get_option('delimiter'), $this->get_option('enclosure') ); $values = str_getcsv( rtrim($file->fgets()), $this->get_option('delimiter'), $this->get_option('enclosure') );
} }