diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index eb81870..f54d702 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1056,7 +1056,12 @@ function taxonomy_get_tree($vid, $parent = 0, $max_depth = NULL, $load_entities * An array of matching term objects. */ function taxonomy_get_term_by_name($name) { - return taxonomy_term_load_multiple(array(), array('name' => trim($name))); + static $term; + if (!isset($term)) { + return taxonomy_term_load_multiple(array(), array('name' => trim($name))); + } else { + return $term; + } } /**