- Patch #107822 by riccardoR: Content filtering ignores vocabularies with only one term.

6.x
Dries Buytaert 2007-07-14 15:30:40 +00:00
parent cd8690fb85
commit fcc5c27b9e
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ function taxonomy_form_all($free_tags = 0) {
foreach ($vocabularies as $vid => $vocabulary) {
if ($vocabulary->tags && !$free_tags) { continue; }
$tree = taxonomy_get_tree($vid);
if ($tree && (count($tree) > 1)) {
if ($tree && (count($tree) > 0)) {
$options[$vocabulary->name] = array();
foreach ($tree as $term) {
$options[$vocabulary->name][$term->tid] = str_repeat('-', $term->depth) . $term->name;