fix tests importer csv

This commit is contained in:
eduardohumberto 2018-07-20 19:55:22 -03:00
parent 7711f002b6
commit 3ec136124a
1 changed files with 0 additions and 3 deletions

View File

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