mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-12-25 05:40:58 +01:00
Fixing an issue
This commit is contained in:
parent
a62d20355d
commit
dcca8fe39e
@ -56,11 +56,11 @@ class Tournament extends TournamentModel
|
|||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function getRanking(bool $sort)
|
public function getRanking(bool $americansort = false)
|
||||||
{
|
{
|
||||||
$players = $this->getPlayers();
|
$players = $this->getPlayers();
|
||||||
|
|
||||||
$sort ? usort($players, array($this, "SortNormal")) : usort($players, array($this, "SortAmerican"));
|
$americansort ? usort($players, array($this, "SortAmerican")) : usort($players, array($this, "SortNormal"));
|
||||||
|
|
||||||
return $players;
|
return $players;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user