From a44c34d3a0017894bb1663cedc64d1f6f9426d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiesner=20Andr=C3=A1s?= Date: Thu, 26 Sep 2024 17:07:55 +0200 Subject: [PATCH] - filtering by groups fixed --- interface.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/interface.php b/interface.php index 488517a..8b085da 100644 --- a/interface.php +++ b/interface.php @@ -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; }