- filtering by groups fixed
This commit is contained in:
parent
9282b818d2
commit
a44c34d3a0
@ -512,7 +512,12 @@ function get_results_by_gameid(ReqHandler &$rh, array $params): array
|
||||
}
|
||||
|
||||
// execute filtering
|
||||
$game_results = $testMgr->getResultsByGameId($gameid, $filter, $ordering, true, $group_filter);
|
||||
$game_results = null;
|
||||
if ($group_filter !== []) {
|
||||
$game_results = $testMgr->getResultsByGameId($gameid, $filter, $ordering, true, $group_filter);
|
||||
} else {
|
||||
$game_results = $testMgr->getResultsByGameId($gameid, $filter, $ordering, true);
|
||||
}
|
||||
$result = $game_results;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user