diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc index c2b0af53d9de6e778dfd5672ed7796fde130c480..3c73379a60a2f11c41e4648f44d24b8887b5faee 100755 --- a/plugins/FeedsProcessor.inc +++ b/plugins/FeedsProcessor.inc @@ -470,10 +470,10 @@ abstract class FeedsProcessor extends FeedsPlugin { // mapping on a prepopulated item such as an existing node. foreach ($this->config['mappings'] as $mapping) { if (isset($targets[$this->id][$mapping['target']]['real_target'])) { - unset($target_item->{$targets[$this->id][$mapping['target']]['real_target']}); + $target_item->{$targets[$this->id][$mapping['target']]['real_target']} = NULL; } - elseif (isset($target_item->{$mapping['target']})) { - unset($target_item->{$mapping['target']}); + else { + $target_item->{$mapping['target']} = NULL; } }