summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-12-03 07:38:29 +0000
committerDries Buytaert <dries@buytaert.net>2002-12-03 07:38:29 +0000
commit737db302a92422f76a092e5c9f94954b603ce053 (patch)
treef6f986bc00a28f4ad722f7d290a6bcb0b744d1ae /modules/taxonomy/taxonomy.module
parent8a91f1befaf8f8ec6778b18e954d71c9e8d75880 (diff)
downloadbrdo-737db302a92422f76a092e5c9f94954b603ce053.tar.gz
brdo-737db302a92422f76a092e5c9f94954b603ce053.tar.bz2
- Changed db_queryd() to db_query().
Diffstat (limited to 'modules/taxonomy/taxonomy.module')
-rw-r--r--modules/taxonomy/taxonomy.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index e71c39fb4..d069ae741 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -483,10 +483,10 @@ function taxonomy_term_count_nodes($tid, $type = 0) {
if (!isset($count[$type])) {
// $type == 0 always evaluates true is $type is a string
if (is_numeric($type)) {
- $result = db_queryd("SELECT t.tid, COUNT(*) AS c FROM term_node t GROUP BY t.tid");
+ $result = db_query("SELECT t.tid, COUNT(*) AS c FROM term_node t GROUP BY t.tid");
}
else {
- $result = db_queryd("SELECT t.tid, COUNT(*) AS c FROM term_node t, node n WHERE t.nid = n.nid AND n.type = '%s' GROUP BY t.tid", $type);
+ $result = db_query("SELECT t.tid, COUNT(*) AS c FROM term_node t, node n WHERE t.nid = n.nid AND n.type = '%s' GROUP BY t.tid", $type);
}
while ($term = db_fetch_object($result)) {
$count[$type][$term->tid] = $term->c;