1
0
This commit is contained in:
Daniel Tartavel 2022-09-23 21:38:23 +02:00
parent 26bf1baa81
commit 2726b158b5

View File

@ -40,7 +40,7 @@ class schulze
function votify(&$votes) function votify(&$votes)
{ {
array_flip($vote); array_flip($votes);
foreach($votes as $vote) foreach($votes as $vote)
{ {
$vote["vote"] = explode("/", $vote["vote"]); $vote["vote"] = explode("/", $vote["vote"]);
@ -73,7 +73,7 @@ class schulze
{ {
echo "non egal\n"; echo "non egal\n";
print_r($w); print_r($w);
$w[$v[i+1]] = 1; $w[$v[$i+1]] = 1;
} }
} }
$w = $this->votify($w); $w = $this->votify($w);