mirror of
https://github.com/sigmasternchen/mobmash.click
synced 2025-03-16 00:29:05 +00:00
fix: winner column was read 1-indexed but written 0-indexed
This commit is contained in:
parent
7c588b97ef
commit
903b8a253b
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ function newPairing(): array {
|
|||
return makeInitialPairing(session_id());
|
||||
}
|
||||
|
||||
const LEFT = 0;
|
||||
const RIGHT = 1;
|
||||
const LEFT = 1;
|
||||
const RIGHT = 2;
|
||||
|
||||
function voteAndNextPairing(int $winner): array {
|
||||
if ($_POST["csrfToken"] != $_SESSION["csrfToken"]) {
|
||||
|
|
Loading…
Reference in a new issue