Merge pull request #5421 from BOINC/dpa_team_search

web: fix bug in team search
This commit is contained in:
Vitalii Koshura 2023-11-10 22:54:06 +01:00 committed by GitHub
commit 63ef8c4c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -155,11 +155,12 @@ function search($params) {
$name_lc = escape_pattern($name_lc);
$list2 = get_teams("name like '".$name_lc."%'", $params->active);
//echo "<br>name like matches: ",sizeof($list2);
merge_lists($list2, $list, 5);
$list2 = get_teams("match(name) against ('$kw')", $params->active);
merge_lists($list2, $list, 5);
$list2 = get_teams("match(name, description) against ('$kw')", $params->active);
$list2 = get_teams(
"match(name, description) against ('$kw')", $params->active
);
//echo "<br>keyword matches: ",sizeof($list2);
merge_lists($list2, $list, 3);
$tried = true;