From 998b1ed83cbbf0ce687a7382a001d1ae15c75c76 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Fri, 29 Oct 2010 19:35:18 +0000 Subject: [PATCH] Avoid notices. --- plugins/FeedsProcessor.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc index c6883347..f1a5e856 100644 --- a/plugins/FeedsProcessor.inc +++ b/plugins/FeedsProcessor.inc @@ -378,7 +378,8 @@ abstract class FeedsProcessor extends FeedsPlugin { self::loadMappers(); foreach ($this->config['mappings'] as $mapping) { // Retrieve source element's value from parser. - if (is_array($sources[$this->id][$mapping['source']]) && + if (isset($sources[$this->id][$mapping['source']]) && + is_array($sources[$this->id][$mapping['source']]) && isset($sources[$this->id][$mapping['source']]['callback']) && function_exists($sources[$this->id][$mapping['source']]['callback'])) { $callback = $sources[$this->id][$mapping['source']]['callback']; @@ -389,7 +390,8 @@ abstract class FeedsProcessor extends FeedsPlugin { } // Map the source element's value to the target. - if (is_array($targets[$this->id][$mapping['target']]) && + if (isset($targets[$this->id][$mapping['target']]) && + is_array($targets[$this->id][$mapping['target']]) && isset($targets[$this->id][$mapping['target']]['callback']) && function_exists($targets[$this->id][$mapping['target']]['callback'])) { $callback = $targets[$this->id][$mapping['target']]['callback']; -- GitLab