Skip to content
Snippets Groups Projects
Commit 51f972ff authored by Ian S. H. Ward's avatar Ian S. H. Ward
Browse files

By alex_b fix notice when setting on CSV parser is empty

parent 3590f8ee
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ class FeedsCSVParser extends FeedsParser { ...@@ -20,7 +20,7 @@ class FeedsCSVParser extends FeedsParser {
$parser->setDelimiter($delimiter); $parser->setDelimiter($delimiter);
$iterator = new ParserCSVIterator($fetcher_result->getFilePath()); $iterator = new ParserCSVIterator($fetcher_result->getFilePath());
if ($source_config['no_headers'] < 1) { if (empty($source_config['no_headers'])) {
// Get first line and use it for column names, convert them to lower case. // Get first line and use it for column names, convert them to lower case.
$header = $this->parseHeader($parser, $iterator); $header = $this->parseHeader($parser, $iterator);
if (!$header) { if (!$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