summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-25 14:44:50 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-25 14:44:50 +0000
commit1f5ea29689aaa2d0833752fdbce333016475cd36 (patch)
treee88c385cd40df68d8cbc791c0a28ca7241e2a40b /modules/taxonomy/taxonomy.module
parent12f771d565c14d926697f2fbd49fb8b114f673bd (diff)
downloadbrdo-1f5ea29689aaa2d0833752fdbce333016475cd36.tar.gz
brdo-1f5ea29689aaa2d0833752fdbce333016475cd36.tar.bz2
#172977 follow up patch by pwolanin: fix NOTICE in taxonomy_term_count_nodes
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module2
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);
}
/**