summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2006-04-03 22:56:53 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2006-04-03 22:56:53 +0000
commit13e52fe352f977d6edb196bb0c196eabf83f2f72 (patch)
tree42b49fc665216b3ea6f1be8fd31439c14a84f5ae /modules
parent826396a4efa4dfb557effaa4075ce6d556a4d6b9 (diff)
downloadbrdo-13e52fe352f977d6edb196bb0c196eabf83f2f72.tar.gz
brdo-13e52fe352f977d6edb196bb0c196eabf83f2f72.tar.bz2
Fix search indexer link tracking after removal of base-tag.
Diffstat (limited to 'modules')
-rw-r--r--modules/search.module2
-rw-r--r--modules/search/search.module2
2 files changed, 2 insertions, 2 deletions
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);
}
}