diff options
-rw-r--r-- | modules/taxonomy/taxonomy.module | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 56f15b119..b26ecf9f2 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -904,6 +904,7 @@ function taxonomy_term_count_nodes($tid, $type = 0) { else { $result = db_query(db_rewrite_sql("SELECT t.tid, COUNT(n.nid) AS c FROM {term_node} t INNER JOIN {node} n ON t.vid = n.vid WHERE n.status = 1 AND n.type = '%s' GROUP BY t.tid"), $type); } + $count[$type] = array(); while ($term = db_fetch_object($result)) { $count[$type][$term->tid] = $term->c; } |