diff --git a/html/news.php b/html/news.php index 7eee3538..5f9b87fb 100644 --- a/html/news.php +++ b/html/news.php @@ -55,7 +55,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { echo ""; } else { $bdd = connect($dbhost, $dbname, $dbuser, $dbpass); - $req = $bdd->prepare("SELECT ID, titre, date, classification FROM articles WHERE classification <= :accreditation ORDER BY date DESC"); + $req = $bdd->prepare("SELECT ID, titre, date FROM articles WHERE classification <= :accreditation ORDER BY date DESC"); $req->bindParam(":accreditation", $_SESSION['accreditation']); $req->execute(); $resultat = $req->fetchAll(PDO::FETCH_ASSOC); @@ -67,8 +67,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { echo "

"; echo ""; echo "
" . $row['titre'] . "
"; - echo "
" . $date->format('d/m/Y') . "
"; - echo "
" . $classifications[(int)$row['classification']] . "
"; + echo "
" . $date->format('d/m/Y') . "
"; } } }