Skip to content
Snippets Groups Projects
Commit eaf60640 authored by Niremizov's avatar Niremizov Committed by Chris Leppanen
Browse files

Issue #2349245 by Niremizov: Fixed error on importing empty csv file with no headers.

parent 6c107855
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ class FeedsCSVParser extends FeedsParser {
// Get first line and use it for column names, convert them to lower case.
$header = $this->parseHeader($parser, $iterator);
if (!$header) {
return;
return FeedsParserResult();
}
$parser->setColumnNames($header);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment