summaryrefslogtreecommitdiff
path: root/modules/search.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-01-21 22:31:37 +0000
committerDries Buytaert <dries@buytaert.net>2003-01-21 22:31:37 +0000
commit966f0811a21f558bbaf9665eedfe55805efe10c2 (patch)
treec74e912650c4530a25b84ac48977fc15c3385407 /modules/search.module
parenta7b5d34cf5cf458cc67f532a204254da20866718 (diff)
downloadbrdo-966f0811a21f558bbaf9665eedfe55805efe10c2.tar.gz
brdo-966f0811a21f558bbaf9665eedfe55805efe10c2.tar.bz2
- Tidied up some SQL queries.
Diffstat (limited to 'modules/search.module')
-rw-r--r--modules/search.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/search.module b/modules/search.module
index 4e964b0d0..d6acc1b71 100644
--- a/modules/search.module
+++ b/modules/search.module
@@ -261,7 +261,7 @@ function update_index($search_array) {
** the search index
*/
foreach ($newwords as $key => $value) {
- db_query("INSERT INTO search_index VALUES('$key', ". $node["lno"] .", '$node_type', $value)");
+ db_query("INSERT INTO search_index VALUES('%s', '%s', '%s', '%s')", $key, $node["lno"], $node_type, $value);
}
// Zap the weighted words array, so we don't add multiples.
@@ -374,4 +374,4 @@ function search_page() {
}
}
-?> \ No newline at end of file
+?>