From f363e0ac6ff07484f3b18bffee4e9277862b24fb Mon Sep 17 00:00:00 2001
From: donquixote <donquixote@459338.no-reply.drupal.org>
Date: Sat, 30 May 2015 16:50:27 -0700
Subject: [PATCH] Issue #2489006 by donquixote: Uninitialized array in
 taxonomy_feeds_set_target()

---
 mappers/taxonomy.inc | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/mappers/taxonomy.inc b/mappers/taxonomy.inc
index 1a83e0b3..75f6541c 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])
-- 
GitLab