diff --git a/modules/search.module b/modules/search.module index 3d3bc91243465b9c79ec27e58589ad71b916f112..59972ef0b5399137e5faa91068fa41670cf41b15 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 3d3bc91243465b9c79ec27e58589ad71b916f112..59972ef0b5399137e5faa91068fa41670cf41b15 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); } }