#205199 by David_Rothstein: leftover links were not removed in the reindexing process properly (search module)
parent
641fdad0b5
commit
84c6d225e8
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue