diff options
-rw-r--r-- | modules/taxonomy/taxonomy.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index bece3b163..2050416b3 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -565,8 +565,8 @@ function taxonomy_form_all($free_tags = 0) { foreach ($vocabularies as $vid => $vocabulary) { if ($vocabulary->tags && !$free_tags) { continue; } $tree = taxonomy_get_tree($vid); - $options[$vocabulary->name] = array(); - if ($tree) { + if ($tree && (count($tree) > 1)) { + $options[$vocabulary->name] = array(); foreach ($tree as $term) { $options[$vocabulary->name][$term->tid] = str_repeat('-', $term->depth) . $term->name; } |