test
continuous-integration/drone/push Build is passing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent baa261a88f
commit f58d6319ba

@ -306,16 +306,16 @@ class UserModel
$score[] = 0;
}
else if ($row['classement'] == 1){
$score[] = $this->enigme_gateway->findById($row['enigme'])[0]->getPoints();
$score[] = (int)$$this->enigme_gateway->findById($row['enigme'])[0]->getPoints();
}
else if ($row['classement'] == 2){
$score[] = $this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.75;
$score[] = (int)$$this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.75;
}
else if ($row['classement'] == 3){
$score[] = $this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.5;
$score[] = (int)$$this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.5;
}
else{
$score[] = $this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.25;
$score[] = (int)$this->enigme_gateway->findById($row['enigme'])[0]->getPoints() * 0.25;
}
}
return $score;

@ -131,5 +131,5 @@ function displayHelp() {
* It opens a new window with the name dashboard.html and the size of 1000x450.
*/
function dashboard() {
window.open("index.php?action=goToDashboard", "", "width=1000, height=380");
window.open("index.php?action=goToDashboard", "", "width=1000, height=450");
}
Loading…
Cancel
Save