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

Consider that vocabulary may not be populated yet.

parent 7f3a42e6
No related branches found
No related tags found
No related merge requests found
...@@ -193,10 +193,11 @@ class FeedsTermProcessor extends FeedsProcessor { ...@@ -193,10 +193,11 @@ class FeedsTermProcessor extends FeedsProcessor {
), ),
); );
// Let implementers of hook_feeds_term_processor_targets() add their targets. // Let implementers of hook_feeds_term_processor_targets() add their targets.
if ($vocabulary = $this->vocabulary()) { try {
self::loadMappers(); self::loadMappers();
feeds_alter('feeds_processor_targets', $targets, 'taxonomy_term', $vocabulary->machine_name); feeds_alter('feeds_processor_targets', $targets, 'taxonomy_term', $this->vocabulary()->machine_name);
} }
catch (Exception $e) {}
return $targets; return $targets;
} }
......
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