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

Issue #1300940 by colin_young: Fixed Undefined Index: unique in FeedsCSVParser.inc.

parent cee5987b
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,7 @@ class FeedsCSVParser extends FeedsParser { ...@@ -123,7 +123,7 @@ class FeedsCSVParser extends FeedsParser {
$sources = $uniques = array(); $sources = $uniques = array();
foreach ($mappings as $mapping) { foreach ($mappings as $mapping) {
$sources[] = check_plain($mapping['source']); $sources[] = check_plain($mapping['source']);
if ($mapping['unique']) { if (!empty($mapping['unique'])) {
$uniques[] = check_plain($mapping['source']); $uniques[] = check_plain($mapping['source']);
} }
} }
...@@ -208,7 +208,7 @@ class FeedsCSVParser extends FeedsParser { ...@@ -208,7 +208,7 @@ class FeedsCSVParser extends FeedsParser {
$mappings = feeds_importer($this->id)->processor->config['mappings']; $mappings = feeds_importer($this->id)->processor->config['mappings'];
$sources = $uniques = array(); $sources = $uniques = array();
foreach ($mappings as $mapping) { foreach ($mappings as $mapping) {
if ($mapping['unique']) { if (!empty($mapping['unique'])) {
$uniques[] = check_plain($mapping['source']); $uniques[] = check_plain($mapping['source']);
} }
else { else {
......
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