From e381f65f70c725645adb0cf4b1f6e73ecb346091 Mon Sep 17 00:00:00 2001 From: Chris Leppanen <chris.leppanen@gmail.com> Date: Thu, 17 Jan 2013 14:28:24 -0800 Subject: [PATCH] Issue #1300940 by colin_young: Fixed Undefined Index: unique in FeedsCSVParser.inc. --- plugins/FeedsCSVParser.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/FeedsCSVParser.inc b/plugins/FeedsCSVParser.inc index b5161ed9..70444405 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 { -- GitLab