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