From 4742ba3549a72b431fc8cad8bd9019e5f59aed9a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 29 Mar 2003 16:30:40 +0000 Subject: - Fixed some SQL query directives. --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/taxonomy/taxonomy.module') 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)); } -- cgit v1.2.3