diff --git a/WEB/Controller/ResoudreGateway.php b/WEB/Controller/ResoudreGateway.php index a3acf305..addce10f 100644 --- a/WEB/Controller/ResoudreGateway.php +++ b/WEB/Controller/ResoudreGateway.php @@ -236,10 +236,9 @@ class ResoudreGateway $this->con->executeQuery($query, array( "partie" => array($idPartie, SQLITE3_INTEGER))); $results=$this->con->getResults(); - if (empty($results)) { + if (empty($results) || $results[0]['max(indexEnigme)'] == null) { return 0; } - var_dump($results); return $results[0]['max(indexEnigme)']; } } \ No newline at end of file