diff --git a/interface.php b/interface.php index 1d8e3ac..2513625 100644 --- a/interface.php +++ b/interface.php @@ -507,6 +507,8 @@ function get_results_by_gameid(ReqHandler &$rh, array $params): array // if (count($group_filter) > 0) { // $group_filter = ["AND", $group_filter]; // } + } else { // a group not found means a faulty query + return []; } $game_results = $testMgr->getResultsByGameId($gameid, $filter, $ordering, true, $group_filter);