diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-25 14:44:50 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-25 14:44:50 +0000 |
commit | 1f5ea29689aaa2d0833752fdbce333016475cd36 (patch) | |
tree | e88c385cd40df68d8cbc791c0a28ca7241e2a40b /modules/taxonomy | |
parent | 12f771d565c14d926697f2fbd49fb8b114f673bd (diff) | |
download | brdo-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')
-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); } /** |