diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-07-14 15:30:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-07-14 15:30:40 +0000 |
commit | fcc5c27b9eae943fc06c8736c21e2b5d33dd3fc1 (patch) | |
tree | e0c74f204620b1a8dfd595ff3a69b93cc48ea047 | |
parent | cd8690fb85937fe381f7ea7429772037168ae4aa (diff) | |
download | brdo-fcc5c27b9eae943fc06c8736c21e2b5d33dd3fc1.tar.gz brdo-fcc5c27b9eae943fc06c8736c21e2b5d33dd3fc1.tar.bz2 |
- Patch #107822 by riccardoR: Content filtering ignores vocabularies with only one term.
-rw-r--r-- | modules/taxonomy/taxonomy.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index a00f33815..95612be4c 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -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; |