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);