module training - trim all imported CSV cells

This commit is contained in:
Rodney Figaro 2017-03-30 09:09:07 +02:00
parent f5619c158f
commit 03caf86516

View File

@ -79,7 +79,7 @@ class CSVReader
$real_cols = array();
foreach($this->expected_cols_index as $real_index => $index) {
$real_cols[$index] = $cols[$real_index];
$real_cols[$index] = trim($cols[$real_index]);
}
$ok = call_user_func($this->handlers['readline'], new ArrayExtended($real_cols));
$this->current_num_line++;