diff --git a/html/news.php b/html/news.php
index b7d0484f..cd325861 100644
--- a/html/news.php
+++ b/html/news.php
@@ -58,12 +58,12 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
$resultat = $req->fetchAll(PDO::FETCH_ASSOC);;
if ($resultat) {
- $date = new Datetime($row[0]['date']);
- echo "
" . $row[0]['ID'] . "
";
- echo "
" . $row[0]['titre'] . "
";
+ $date = new Datetime($resultat[0]['date']);
+ echo "
" . $resultat[0]['ID'] . "
";
+ echo "
" . $resultat[0]['titre'] . "
";
echo "
" . $date->format('d/m/Y') . "
";
- echo "
" . $row[0]['auteur'] . "
";
- echo "
" . $row[0]['classification'] . "
";
+ echo "
" . $resultat[0]['auteur'] . "
";
+ echo "
" . $resultat[0]['classification'] . "
";
}
echo "