diff --git a/plugins/FeedsCSVParser.inc b/plugins/FeedsCSVParser.inc index b5161ed953fd5f1ddd11889c08bcd97946f7c2cf..704444055d89e04d3543dbb34bc416164fca1c4b 100644 --- a/plugins/FeedsCSVParser.inc +++ b/plugins/FeedsCSVParser.inc @@ -123,7 +123,7 @@ class FeedsCSVParser extends FeedsParser { $sources = $uniques = array(); foreach ($mappings as $mapping) { $sources[] = check_plain($mapping['source']); - if ($mapping['unique']) { + if (!empty($mapping['unique'])) { $uniques[] = check_plain($mapping['source']); } } @@ -208,7 +208,7 @@ class FeedsCSVParser extends FeedsParser { $mappings = feeds_importer($this->id)->processor->config['mappings']; $sources = $uniques = array(); foreach ($mappings as $mapping) { - if ($mapping['unique']) { + if (!empty($mapping['unique'])) { $uniques[] = check_plain($mapping['source']); } else {