Commit 605e0e4e authored by damienmckenna's avatar damienmckenna Committed by Ra Mänd
Browse files

Issue #3051803 by DamienMcKenna: Fix PHP 5.3 compatibility in field_collection.module

parent 45a4e02c
......@@ -2343,7 +2343,8 @@ function field_collection_file_feeds_set_target($source, $entity, $target, $valu
* item, then NULL is passed.
*/
function field_collection_feeds_presave(FeedsSource $source, $entity, $item, $entity_id) {
$mappings = $source->importer()->getConfig()['processor']['config']['mappings'];
$feed_config = $source->importer()->getConfig();
$mappings = $feed_config['processor']['config']['mappings'];
// Only hook in when updating the entity.
if (empty($entity_id)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment