From 51f972ffd80febe138a0ce17d1a39dff5ec9ccda Mon Sep 17 00:00:00 2001
From: "Ian S. H. Ward" <ian_ward@4736.no-reply.drupal.org>
Date: Fri, 29 Oct 2010 18:56:48 +0000
Subject: [PATCH] By alex_b fix notice when setting on CSV parser is empty

---
 plugins/FeedsCSVParser.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/FeedsCSVParser.inc b/plugins/FeedsCSVParser.inc
index b94fd05d..8dbc6663 100644
--- a/plugins/FeedsCSVParser.inc
+++ b/plugins/FeedsCSVParser.inc
@@ -20,7 +20,7 @@ class FeedsCSVParser extends FeedsParser {
     $parser->setDelimiter($delimiter);
 
     $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.
       $header = $this->parseHeader($parser, $iterator);
       if (!$header) {
-- 
GitLab