From b1de2b49ccf224d31a7dfbbb387a756c14f87f5e Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Sat, 31 Oct 2009 14:30:27 +0000 Subject: [PATCH] Actually check for array first. --- plugins/FeedsProcessor.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc index 4eeb2b7e..1adf42a4 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); } -- GitLab