diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc index 4eeb2b7e7048c2d82d99cb372655ba2b3d73c6c2..1adf42a45b144485d212e666871416379900cf8c 100644 --- a/plugins/FeedsProcessor.inc +++ b/plugins/FeedsProcessor.inc @@ -74,7 +74,7 @@ abstract class FeedsProcessor extends FeedsPlugin { foreach ($this->config['mappings'] as $mapping) { $value = $parser->getSourceElement($source_item, $mapping['source']); - if (isset($targets[$mapping['target']]['callback']) && function_exists($targets[$mapping['target']]['callback'])) { + if (is_array($targets[$mapping['target']]) && isset($targets[$mapping['target']]['callback']) && function_exists($targets[$mapping['target']]['callback'])) { $callback = $targets[$mapping['target']]['callback']; $callback($target_item, $mapping['target'], $value); }