Skip to content
Snippets Groups Projects
Commit f363e0ac authored by donquixote's avatar donquixote Committed by Chris Leppanen
Browse files

Issue #2489006 by donquixote: Uninitialized array in taxonomy_feeds_set_target()

parent 05422fed
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,12 @@ function taxonomy_feeds_set_target($source, $entity, $target, array $terms, $map
}
}
// Some kind of configuration issue. Perhaps the vocabulary was deleted.
// Nothing we can do about it.
if (empty($cache['allowed_vocabularies'][$target])) {
return;
}
$query = new EntityFieldQuery();
$query->entityCondition('entity_type', 'taxonomy_term')
->entityCondition('bundle', $cache['allowed_vocabularies'][$target])
......
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