summaryrefslogtreecommitdiff
path: root/modules/search.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/search.module')
-rw-r--r--modules/search.module2
1 files changed, 1 insertions, 1 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);
}
}