Skip to content

Commit

Permalink
Bugfix about object method in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Boudry committed Mar 16, 2014
1 parent 09a2fb1 commit d76a980
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Condorcet.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,14 @@ protected static function error ($code, $infos = null)

///

public function __construct ($algo = null)
public function __construct ($method = null)
{
$this->_method = self::$_class_method ;

$this->_options = array() ;
$this->_votes = array() ;
$this->_algos = self::add_algos($algo) ;

$this->setMethod($method) ;
}


Expand Down

0 comments on commit d76a980

Please sign in to comment.