summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-03-29 16:30:40 +0000
committerDries Buytaert <dries@buytaert.net>2003-03-29 16:30:40 +0000
commit4742ba3549a72b431fc8cad8bd9019e5f59aed9a (patch)
treeb746bb0a9f08fa50461fce05176a53b810ade369 /modules/taxonomy/taxonomy.module
parent6857ab3dbbe0d90325d3b07b0f0c594377b172d8 (diff)
downloadbrdo-4742ba3549a72b431fc8cad8bd9019e5f59aed9a.tar.gz
brdo-4742ba3549a72b431fc8cad8bd9019e5f59aed9a.tar.bz2
- Fixed some SQL query directives.
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 f746b0eb8..64ad32cdc 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -347,7 +347,7 @@ function taxonomy_node_form($type, $node = '') {
// return 1 if node identified by $nid contains a taxonomy term identified by $tid in his body or title
function taxonomy_node_has_term($nid, $tid) {
- $term_name = db_result(db_query("SELECT name FROM term_data WHERE tid = '%s'", $tid));
+ $term_name = db_result(db_query("SELECT name FROM term_data WHERE tid = '%d'", $tid));
return db_result(db_query("SELECT COUNT(n.nid) FROM node n WHERE n.nid = '%d' AND ((n.body LIKE '%%%s%%') OR (n.body LIKE '%%%s%%'))", $nid, $term_name, $term_name));
}