summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Barth2010-09-08 22:02:08 (GMT)
committer Alex Barth2010-09-08 22:02:08 (GMT)
commitebc2016bc2d60a217e1edff96e9e4b7189d82d44 (patch)
treea9c6f5b7f6824470575e0c4b8191c3f0f9901e1c
parentb5993596dd09e3760802f22cc02264074ec146ac (diff)
Follow up fix to #878002: Support multiple sources per mapping target in FeedsDataProcessor.
-rw-r--r--plugins/FeedsDataProcessor.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/FeedsDataProcessor.inc b/plugins/FeedsDataProcessor.inc
index a7a0faf..82e29c5 100644
--- a/plugins/FeedsDataProcessor.inc
+++ b/plugins/FeedsDataProcessor.inc
@@ -235,7 +235,12 @@ class FeedsDataProcessor extends FeedsProcessor {
}
}
else {
- $target_item[$target_element] = $value;
+ if (is_array($target_item[$target_element]) && is_array($value)) {
+ $target_item[$target_element] = array_merge($target_item[$target_element], $value);
+ }
+ else {
+ $target_item[$target_element] = $value;
+ }
}
}