summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-06-07 13:41:48 +0000
committerDries Buytaert <dries@buytaert.net>2008-06-07 13:41:48 +0000
commit89f115c4f59388e2274e0370c5fedf81f805ec61 (patch)
tree630b855e45989951a4b607fed32e5d70d41546c9 /modules/taxonomy/taxonomy.module
parent3ec46f935a988c988f9a017002b86f6def415ec4 (diff)
downloadbrdo-89f115c4f59388e2274e0370c5fedf81f805ec61.tar.gz
brdo-89f115c4f59388e2274e0370c5fedf81f805ec61.tar.bz2
- Patch #169899 by Island Usurper: taxonomy caching not always working.
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module1
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;
}