diff options
Diffstat (limited to 'modules')
-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 45f8f58a3..3fc560c22 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -788,7 +788,7 @@ function taxonomy_term_count_nodes($tid, $type = 0) { foreach (_taxonomy_term_children($tid) as $c) { $children_count += taxonomy_term_count_nodes($c, $type); } - return $count[$type][$tid] + $children_count; + return $children_count + (isset($count[$type][$tid]) ? $count[$type][$tid] : 0); } /** |