diff --git a/WEB/Model/AdminModel.php b/WEB/Model/AdminModel.php index 3467369b..8472f7db 100644 --- a/WEB/Model/AdminModel.php +++ b/WEB/Model/AdminModel.php @@ -17,8 +17,7 @@ class AdminModel public function addNewEnigmeSolo(string $nom,string $enonce,string $aide,string $rappel,string $exemple,string $test,string $solution, string $prompt) : Enigme { $last = $this->enigme_gateway->findLastEnigma(); - var_dump($last); - if ($last !== null){ + if ($last != null){ $ordre = $last[0]->getOrdre() + 1; } else { $ordre = 1;