Skip to content
Snippets Groups Projects
Commit 998b1ed8 authored by Alex Barth's avatar Alex Barth
Browse files

Avoid notices.

parent a22671b0
No related branches found
No related tags found
No related merge requests found
......@@ -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'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment