mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various fixes. Sorry, lazy day.
This commit is contained in:
@@ -134,9 +134,22 @@ class LineReader
|
||||
$results = $stmt->process($reader);
|
||||
$lines = [];
|
||||
foreach ($results as $line) {
|
||||
$lines[] = array_values($line);
|
||||
|
||||
$lineValues = array_values($line);
|
||||
|
||||
// do a first sanity check on whatever comes out of the CSV file.
|
||||
array_walk(
|
||||
$lineValues, static function ($element) {
|
||||
$element = str_replace(' ', ' ', (string)$element);
|
||||
|
||||
return $element;
|
||||
}
|
||||
);
|
||||
|
||||
$lines[] = $lineValues;
|
||||
}
|
||||
|
||||
|
||||
return $lines;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user