diff --git a/html/news.php b/html/news.php index fab996dd..cfd09474 100644 --- a/html/news.php +++ b/html/news.php @@ -98,7 +98,7 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT) $parsedown = new Parsedown(); $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $req = $bdd->prepare("SELECT ID, titre, date, auteur, classification FROM articles WHERE ID = :article AND classification <= :accreditation"); + $req = $bdd->prepare("SELECT ID, titre, date, auteur, classification, image FROM articles WHERE ID = :article AND classification <= :accreditation"); $req->bindParam(":article", $article); $req->bindParam(":accreditation", $_SESSION['accreditation']); $req->execute(); @@ -111,6 +111,7 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT) echo "