|
|
@ -195,15 +195,15 @@ class UserModel
|
|
|
|
if ($row['classement'] == 1){
|
|
|
|
if ($row['classement'] == 1){
|
|
|
|
$points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints();
|
|
|
|
$points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if ($row['ended'] == 0){
|
|
|
|
|
|
|
|
$points += 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
else if ($row['classement'] == 2){
|
|
|
|
else if ($row['classement'] == 2){
|
|
|
|
$points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.75;
|
|
|
|
$points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.75;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ($row['classement'] == 3){
|
|
|
|
else if ($row['classement'] == 3){
|
|
|
|
$points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.5;
|
|
|
|
$points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.5;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ($row['ended'] == 0){
|
|
|
|
|
|
|
|
$points += 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|
$points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.25;
|
|
|
|
$points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.25;
|
|
|
|
}
|
|
|
|
}
|
|
|
|