diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index ba483bb..e19c9ab 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1049,9 +1049,9 @@ function taxonomy_get_tree($vid, $parent = 0, $max_depth = NULL, $load_entities * Provides a case-insensitive and trimmed mapping, to maximize the * likelihood of a successful match. * - * @param name + * @param $name * Name of the term to search for. - * @param vocabulary + * @param $vocabulary * (optional) Vocabulary machine name to limit the search. * * @return @@ -1059,7 +1059,7 @@ function taxonomy_get_tree($vid, $parent = 0, $max_depth = NULL, $load_entities */ function taxonomy_get_term_by_name($name, $vocabulary = NULL) { $conditions = array('name' => trim($name)); - if ($vocabulary) { + if (isset($vocabulary)) { $vocabularies = taxonomy_vocabulary_get_names(); $conditions['vid'] = $vocabularies[$vocabulary]->vid; }