From 337b3c9de997f4fcb27467e3d80d0f43fda7783e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 10 Jul 2003 17:46:44 +0000 Subject: - Committed a slightly modified version of Slavica's table prefix patch. --- modules/search/search.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/search/search.module') diff --git a/modules/search/search.module b/modules/search/search.module index 7eebf9f03..8bab38a11 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -226,7 +226,7 @@ function update_index($search_array) { ** Trash any existing entries in the search index for this node, ** in case its a modified node. */ - db_query("DELETE from search_index where lno = '". $node["lno"] ."' and type = '". $node_type ."'"); + db_query("DELETE from {search_index} where lno = '". $node["lno"] ."' and type = '". $node_type ."'"); /* ** Build the wordlist, teaser not included, as it then gives a @@ -284,7 +284,7 @@ function update_index($search_array) { */ if ($newwords) { foreach ($newwords as $key => $value) { - db_query("INSERT INTO search_index VALUES('%s', %d, '%s', %d)", $key, $node["lno"], $node_type, $value); + db_query("INSERT INTO {search_index} VALUES('%s', %d, '%s', %d)", $key, $node["lno"], $node_type, $value); } } -- cgit v1.2.3