diff --git a/mappers/taxonomy.inc b/mappers/taxonomy.inc index da021a844f959121e779554e41c10eb7709d4246..c6c17eebd99a4e4760b44f3da471667e30fdee7e 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();