From 9e8c68fc01f6201a2ffe9157a728b1572476e0ed Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Fri, 23 Sep 2022 21:25:57 +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 6cd5ba0..928bd94 100644 --- a/methods/schulzeResults.php +++ b/methods/schulzeResults.php @@ -57,7 +57,7 @@ class schulze for($i = 0;$i < count($v) - 1;$i++) { $s = $v[$i]; - echo $i . "=> . " . $s . "\n"; + echo $i . " => " . $s . "\n"; if ($i == 0) { echo "i = 0\n"; @@ -72,7 +72,7 @@ class schulze { echo "non egal\n"; print_r($w); - $w[$s] = 1; + $w[$v[i+1]] = 1; } } $w = $this->votify($w);