diff --git a/methods/schulzeResults.php b/methods/schulzeResults.php index 93d9571..1e40860 100644 --- a/methods/schulzeResults.php +++ b/methods/schulzeResults.php @@ -3,7 +3,7 @@ class schulze { public int $nvotant; - public int $ncandidats; + public int $ncandidats = 5; public array $nvotes; public array $v = array( @@ -77,6 +77,7 @@ class schulze function result($v) { + $ncandidats = $this->ncandidats; for ($i=1;$i<=$ncandidats;$i++) { for ($j=1;$j<=$ncandidats;$j++)