diff --git a/Model/UserModel.php b/Model/UserModel.php index fa579a8d..885ad188 100644 --- a/Model/UserModel.php +++ b/Model/UserModel.php @@ -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; diff --git a/View/src/JS/baseMulti.js b/View/src/JS/baseMulti.js index ce186d09..23d4b649 100644 --- a/View/src/JS/baseMulti.js +++ b/View/src/JS/baseMulti.js @@ -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"); } \ No newline at end of file