From 84c6d225e8f3579fe7f9e128cf7a21453dee66c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 1 Jan 2008 17:30:55 +0000 Subject: #205199 by David_Rothstein: leftover links were not removed in the reindexing process properly (search module) --- modules/search/search.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/search/search.module b/modules/search/search.module index 4f0e7376c..f1636106c 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -602,7 +602,7 @@ function search_index($sid, $type, $text) { } } // Any left-over links in $links no longer exist. Delete them and mark the nodes for reindexing. - foreach ($links as $nid) { + foreach ($links as $nid => $caption) { db_query("DELETE FROM {search_node_links} WHERE sid = %d AND type = '%s' AND nid = %d", $sid, $type, $nid); search_touch_node($nid); } -- cgit v1.2.3