From 13e52fe352f977d6edb196bb0c196eabf83f2f72 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Mon, 3 Apr 2006 22:56:53 +0000 Subject: Fix search indexer link tracking after removal of base-tag. --- modules/search.module | 2 +- modules/search/search.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/search.module b/modules/search.module index 3d3bc9124..59972ef0b 100644 --- a/modules/search.module +++ b/modules/search.module @@ -266,7 +266,7 @@ function search_wipe($sid = NULL, $type = NULL, $reindex = FALSE) { db_query("DELETE FROM {search_dataset} WHERE sid = %d AND type = '%s'", $sid, $type); db_query("DELETE FROM {search_index} WHERE fromsid = %d AND fromtype = '%s'", $sid, $type); // When re-indexing, keep link references - db_query("DELETE FROM {search_index} WHERE sid = %d AND type = '%s'". ($reindex ? " AND fromsid = 0" ; ''), $sid, $type); + db_query("DELETE FROM {search_index} WHERE sid = %d AND type = '%s'". ($reindex ? " AND fromsid = 0" : ''), $sid, $type); } } diff --git a/modules/search/search.module b/modules/search/search.module index 3d3bc9124..59972ef0b 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -266,7 +266,7 @@ function search_wipe($sid = NULL, $type = NULL, $reindex = FALSE) { db_query("DELETE FROM {search_dataset} WHERE sid = %d AND type = '%s'", $sid, $type); db_query("DELETE FROM {search_index} WHERE fromsid = %d AND fromtype = '%s'", $sid, $type); // When re-indexing, keep link references - db_query("DELETE FROM {search_index} WHERE sid = %d AND type = '%s'". ($reindex ? " AND fromsid = 0" ; ''), $sid, $type); + db_query("DELETE FROM {search_index} WHERE sid = %d AND type = '%s'". ($reindex ? " AND fromsid = 0" : ''), $sid, $type); } } -- cgit v1.2.3