Correction de bug
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent e4e7004ed1
commit 8385830ecd

@ -208,6 +208,9 @@ class UserModel
if ($row['temps'] == 0){ if ($row['temps'] == 0){
$points += 0; $points += 0;
} }
else if ($row['ended'] == 0){
$points += 0;
}
else if ($row['classement'] == 1){ else if ($row['classement'] == 1){
$points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints(); $points += $this->enigme_gateway->findById($row['enigme'])[0]->getPoints();
} }
@ -305,9 +308,9 @@ class UserModel
if ($row['temps'] == 0){ if ($row['temps'] == 0){
$score[] = 0; $score[] = 0;
} }
// if ($row['ended'] == 0){ else if ($row['ended'] == 0){
// $score[] = 0; $score[] = 0;
// } }
else if ($row['classement'] == 1){ else if ($row['classement'] == 1){
$score[] = $this->enigme_gateway->findById($row['enigme'])[0]->getPoints(); $score[] = $this->enigme_gateway->findById($row['enigme'])[0]->getPoints();
} }

Loading…
Cancel
Save