Skip to content
Snippets Groups Projects
Commit c55df077 authored by Alex Barth's avatar Alex Barth
Browse files

Trim name before testing for it.

parent 7f5ec7e3
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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