- Patch #293504 by Damien Tournoud: fixed search on PostgreSQL - argument of AND must be type boolean, not type integer.
parent
3a7bbafa92
commit
774d060142
|
|
@ -912,7 +912,7 @@ function _search_parse_query(&$word, &$scores, $not = FALSE) {
|
||||||
*
|
*
|
||||||
* @ingroup search
|
* @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);
|
$query = search_parse_query($keywords);
|
||||||
|
|
||||||
if ($query[2] == '') {
|
if ($query[2] == '') {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue