From 2726b158b525132930cc3207038ae7470727053f Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Fri, 23 Sep 2022 21:38:23 +0200 Subject: [PATCH] test --- methods/schulzeResults.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/methods/schulzeResults.php b/methods/schulzeResults.php index 6444036..89eab12 100644 --- a/methods/schulzeResults.php +++ b/methods/schulzeResults.php @@ -40,7 +40,7 @@ class schulze function votify(&$votes) { - array_flip($vote); + array_flip($votes); foreach($votes as $vote) { $vote["vote"] = explode("/", $vote["vote"]); @@ -73,7 +73,7 @@ class schulze { echo "non egal\n"; print_r($w); - $w[$v[i+1]] = 1; + $w[$v[$i+1]] = 1; } } $w = $this->votify($w);