summaryrefslogtreecommitdiff
path: root/http/api-inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'http/api-inc.php')
-rw-r--r--http/api-inc.php3
1 files changed, 3 insertions, 0 deletions
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']);