From 388961295109555759f8b3171e0c4e08a0d581b8 Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Thu, 29 Sep 2022 11:56:52 +0200 Subject: [PATCH] debug --- include/db.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/db.class.php b/include/db.class.php index 7ba0484..a3a0ee9 100644 --- a/include/db.class.php +++ b/include/db.class.php @@ -117,7 +117,7 @@ class dbcore { $query = "SELECT * FROM liste_votations"; $this->query($query); - $votationLine = $this->result->fetch_all(MSQLI_ASSOC); + $votationLine = $this->result->fetch_all(MYSQLI_ASSOC); foreach ($votationLine as $line) { $votationList[$line["id"]] = $line; @@ -137,7 +137,7 @@ class dbcore { $query = "SELECT * FROM liste_votes WHERE idVotation = " . idVotation; $this->query($query); - $votes = $this->result->fetch_all(MSQLI_ASSOC); + $votes = $this->result->fetch_all(MYSQLI_ASSOC); foreach ($votes as $line) { $votesList[$line["id"]] = $line; @@ -157,7 +157,7 @@ class dbcore { $query = "SELECT id, lv.libelle, ms.libelle as methode FROM liste_votes as lv LEFT JOIN methods as ms ON lv.methode=ms.id WHERE idVotation='" . $idVotation . "'"; $this->query($query); - $votes = $this->result->fetch_all(MSQLI_ASSOC); + $votes = $this->result->fetch_all(MYSQLI_ASSOC); return $votes; }