diff --git a/modules/search/search.module b/modules/search/search.module index 4f0e7376c73d..f1636106c1a5 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); }