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; }