From 2f9b7289b97d9a5a3d7b797115eb8481c3fbb869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Tue, 10 Jan 2023 14:53:27 +0100 Subject: [PATCH] Deboguage --- WEB/Controller/ResoudreGateway.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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