From d50e8d9530069d890030b856105baab08767e2e6 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Fri, 8 Mar 2024 19:07:37 +0000 Subject: [PATCH] Update file news.php --- html/news.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/news.php b/html/news.php index bceac073..bf930bcd 100644 --- a/html/news.php +++ b/html/news.php @@ -65,6 +65,8 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) { echo "
" . $row['titre'] . "
"; echo "
" . date('d/m/Y', $date) . "
"; } + } else { + echo "Aucun article trouvé"; } } else if (!isset($_GET['search']) && $article != "" && file_exists('/var/www/e59/content/journal/' . $article . '.md')) { $markdownContent = file_get_contents('/var/www/e59/content/journal/' . $article . '.md');