From c55df077ac3e7666a2d9165e3670520e488e1c5f Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Sun, 5 Dec 2010 23:46:42 +0000 Subject: [PATCH] Trim name before testing for it. --- mappers/taxonomy.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/mappers/taxonomy.inc b/mappers/taxonomy.inc index da021a84..c6c17eeb 100644 --- a/mappers/taxonomy.inc +++ b/mappers/taxonomy.inc @@ -119,6 +119,7 @@ function taxonomy_feeds_set_target($source, $entity, $target, $terms) { * A term id. */ function taxonomy_term_check_term($name, $vid) { + $name = trim($name); $terms = taxonomy_term_load_multiple(array(), array('name' => $name, 'vid' => $vid)); if (empty($terms)) { $term = new stdClass(); -- GitLab