From a649f90765f64392968c4d9bbe08bf9e7668c9e4 Mon Sep 17 00:00:00 2001 From: emkael Date: Thu, 14 May 2020 01:33:23 +0200 Subject: Pass 'boards' argument through parameter checks, if present --- http/api-inc.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'http') diff --git a/http/api-inc.php b/http/api-inc.php index fc0d48e..67a7fd7 100644 --- a/http/api-inc.php +++ b/http/api-inc.php @@ -120,6 +120,9 @@ class ApiPkl { if ($return['type'] != 2 && $this->parameters['tournament_rank'] == ApiPkl::RANK_KMP) { throw new ParametersException('Parameter: type has incorrect value (' . $return['type'] . ') for KMP tournament'); } + if (isset($this->parameters['boards'])) { + $return['boards'] = intval($this->parameters['boards']); + } $return['contestants'] = intval($this->parameters['contestants']); $return['players'] = isset($this->parameters['players']) ? intval($this->parameters['players']) : intval($this->parameters['contestants']) * $return['type']; $return['title_sum'] = floatval($this->parameters['title_sum']); -- cgit v1.2.3