diff --git a/class/objet.php b/class/objet.php index ff4fd2f5d4f20ac73b9a14dd4a4c7b32d0ce439c..a88b11d80983a53c1c0fc14543f7ac5fa5933442 100644 --- a/class/objet.php +++ b/class/objet.php @@ -97,7 +97,7 @@ class Objet $requete_prepare = $bdd->db->prepare("SELECT * FROM ".$dbName." WHERE ".$this->primaryAttr." = :id"); // on prépare notre requête $requete_prepare->execute(array("id" => $id)); - $ligne = $requete_prepare->fetch(PDO::FETCH_ASSOC) + $ligne = $requete_prepare->fetch(PDO::FETCH_ASSOC); $this->fromDb($ligne); } } \ No newline at end of file