projects
/
project/feeds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
cddfa02
)
Avoid notices when no headers is not present.
author
Alex Barth
Fri, 29 Oct 2010 18:44:35 +0000 (18:44 +0000)
committer
Alex Barth
Fri, 29 Oct 2010 18:44:35 +0000 (18:44 +0000)
plugins/FeedsCSVParser.inc
patch
|
blob
|
blame
|
history
diff --git
a/plugins/FeedsCSVParser.inc
b/plugins/FeedsCSVParser.inc
index
4600621
..
58ed9c3
100644
(file)
--- a/
plugins/FeedsCSVParser.inc
+++ b/
plugins/FeedsCSVParser.inc
@@
-19,7
+19,7
@@
class FeedsCSVParser extends FeedsParser {
$delimiter = $source_config['delimiter'] == 'TAB' ? "\t" : $source_config['delimiter'];
$parser->setDelimiter($delimiter);
- 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) {