Commit 84c6d225 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#205199 by David_Rothstein: leftover links were not removed in the reindexing...

#205199 by David_Rothstein: leftover links were not removed in the reindexing process properly (search module)
parent 641fdad0
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment