fix : Yeah indeed find problem once i pushed
continuous-integration/drone/push Build is failing Details

tests
BelsethUwU 1 year ago
parent d9b71cbd37
commit bbcc80e5ef

@ -125,7 +125,7 @@ class ControllerUser
$answerNumber = $_POST["answer"];
$numQuestion = $_POST["numQuestion"] + 1;
$questions = json_decode($_POST["questions"], true);
if ($numQuestion > 10) {
if ($numQuestion > 9) {
echo $this->twig->render($this->vues["home"]);
//EN GROS IL FAUT AFFICHER LE SCORE (C'est copilot qui a fait ça, la fin du commentaire j'veux dire)
//Si faut paser un param score de page en page dittes le moi je le ferais dw

@ -25,7 +25,7 @@
<p class="fs-2">
{{ questions[numQuestion]['content'] }}
<br>
Question n° : {{ numQuestion }}/10
Question n° : {{ numQuestion+1 }}/10
</p>
</div>
<form action="/verifQuestion" method="post">

Loading…
Cancel
Save