1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/www/drupal4/files/patch-modules-taxonomy-taxonomy.module
Rong-En Fan b330d59a68 - Fixing taxonomy module for add-on ticker module
- Switch to drupal5/bsd.drupal.mk
- Rename to drupal4-

PR:		ports/110412
Submitted by:	Nick Hilliard <nick at foobar.org> (maintainer)
2007-03-25 09:44:55 +00:00

12 lines
531 B
Plaintext

--- modules/taxonomy.module~ Sat Mar 17 00:26:28 2007
+++ modules/taxonomy.module Sat Mar 17 00:26:28 2007
@@ -619,7 +619,7 @@
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) >= 1)) {
$options[$vocabulary->name] = array();
foreach ($tree as $term) {
$options[$vocabulary->name][$term->tid] = str_repeat('-', $term->depth) . $term->name;