Skip to content

Commit

Permalink
Merge pull request #5421 from BOINC/dpa_team_search
Browse files Browse the repository at this point in the history
web: fix bug in team search
  • Loading branch information
AenBleidd authored Nov 10, 2023
2 parents 058a809 + 0ddcdda commit 63ef8c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions html/user/team_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 63ef8c4

Please sign in to comment.