From 903b8a253b69ea74e4749f89a017c845de327a39 Mon Sep 17 00:00:00 2001 From: overflowerror Date: Sat, 3 Aug 2024 20:36:17 +0200 Subject: [PATCH] fix: winner column was read 1-indexed but written 0-indexed --- html/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/index.php b/html/index.php index eebfd6a..3ee163d 100644 --- a/html/index.php +++ b/html/index.php @@ -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"]) {