summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Barth2010-10-29 19:35:18 (GMT)
committer Alex Barth2010-10-29 19:35:18 (GMT)
commit998b1ed83cbbf0ce687a7382a001d1ae15c75c76 (patch)
tree6e4fcdc1f9b366e454a8bf648f5c585033ccf9fd
parenta22671b03f7f61269fb98f9fa0a12b3d7b4a40df (diff)
Avoid notices.
-rw-r--r--plugins/FeedsProcessor.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/FeedsProcessor.inc b/plugins/FeedsProcessor.inc
index c688334..f1a5e85 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'];