From 3855696f329ce6fb2378a5e9d37a612d6bcb2563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Wed, 11 Jan 2023 19:06:47 +0100 Subject: [PATCH] Corrections de bug --- WEB/Controller/ResoudreGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WEB/Controller/ResoudreGateway.php b/WEB/Controller/ResoudreGateway.php index 90665745..25f014ad 100644 --- a/WEB/Controller/ResoudreGateway.php +++ b/WEB/Controller/ResoudreGateway.php @@ -86,7 +86,7 @@ class ResoudreGateway "utilisateur" => array($utilisateur->getEmail(), SQLITE3_TEXT), "enigme" => array($enigmeId, SQLITE3_INTEGER))); $results=$this->con->getResults(); - if(empty($results)) + if(empty($results) || $results == null) { $temps = 1; $code = "";