diff --git a/methods/schulzeResults.php b/methods/schulzeResults.php index 89eab12..478fc95 100644 --- a/methods/schulzeResults.php +++ b/methods/schulzeResults.php @@ -38,9 +38,9 @@ class schulze return $r; } - function votify(&$votes) + function votify(&$v) { - array_flip($votes); + $votes = array_flip($v); foreach($votes as $vote) { $vote["vote"] = explode("/", $vote["vote"]);