#205199 by David_Rothstein: leftover links were not removed in the reindexing process properly (search module)

6.x
Gábor Hojtsy 2008-01-01 17:30:55 +00:00
parent 641fdad0b5
commit 84c6d225e8
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}