1
0
This commit is contained in:
Daniel Tartavel 2022-09-15 18:43:24 +02:00
parent 7aed48409e
commit f8549abcf9
2 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,4 @@
<?php <?php
require_once '../session_init.php'; require_once '../session_init.php';
require_once 'config.inc.php'; require_once 'config.inc.php';
require_once 'db.class.php'; require_once 'db.class.php';

View File

@ -101,7 +101,7 @@ function votesForm($path, $libelle = "", $method = 0)
$db = new db(); $db = new db();
$query = "SELECT *m FROM methods"; // clotûre $query = "SELECT *m FROM methods"; // clotûre
$db->query($query); $db->query($query);
$methods = $db->result::fetch_all(MYSQLI_ASSOC); $methods = $db->result->fetch_all(MYSQLI_ASSOC);
if (!(array_key_exists($method, $methods))) if (!(array_key_exists($method, $methods)))
{ {
print(_("L'ID de la méthode demandée n'est pas bonne " . __file__ . __LINE__)); print(_("L'ID de la méthode demandée n'est pas bonne " . __file__ . __LINE__));