diff --git a/modules/training/models/CSVReader.php b/modules/training/models/CSVReader.php index e1ea703..8df1910 100644 --- a/modules/training/models/CSVReader.php +++ b/modules/training/models/CSVReader.php @@ -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++;