From 774d060142d400abb5daf61614b35a62750337d6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 13 Aug 2008 06:59:19 +0000 Subject: - Patch #293504 by Damien Tournoud: fixed search on PostgreSQL - argument of AND must be type boolean, not type integer. --- modules/search/search.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/search/search.module b/modules/search/search.module index f6175084c..dfcc12edc 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -912,7 +912,7 @@ function _search_parse_query(&$word, &$scores, $not = FALSE) { * * @ingroup search */ -function do_search($keywords, $type, $join1 = '', $where1 = '1', $arguments1 = array(), $columns2 = 'i.relevance AS score', $join2 = '', $arguments2 = array(), $sort_parameters = 'ORDER BY score DESC') { +function do_search($keywords, $type, $join1 = '', $where1 = '1 = 1', $arguments1 = array(), $columns2 = 'i.relevance AS score', $join2 = '', $arguments2 = array(), $sort_parameters = 'ORDER BY score DESC') { $query = search_parse_query($keywords); if ($query[2] == '') { -- cgit v1.2.3