From eff038a7ea1bb00bc0906ab7fe1acea5c79a5e42 Mon Sep 17 00:00:00 2001 From: Epagris Date: Thu, 26 Sep 2024 13:25:25 +0200 Subject: [PATCH] - a group not found fails the query --- interface.php | 2 ++ 1 file changed, 2 insertions(+) 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);