diff --git a/mappers/taxonomy.inc b/mappers/taxonomy.inc index 1a83e0b3264f37be6a22972a6513307ed8e5484b..75f6541c9c0e6c427b4ae24aaf91b2f2c95a8ed3 100644 --- a/mappers/taxonomy.inc +++ b/mappers/taxonomy.inc @@ -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])