From cf2a02457a6c8d5c8e2e8eae1e447906db9ed337 Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Tue, 12 Mar 2024 08:10:11 +0000 Subject: [PATCH] Update file upload.php --- html/upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/upload.php b/html/upload.php index 3931094f..8d9eb77d 100644 --- a/html/upload.php +++ b/html/upload.php @@ -21,7 +21,7 @@ if(isset($_POST['article-content'])) { $upload = $bdd->prepare("INSERT INTO articles (ID, titre, auteur, image, resume, classification) VALUES (:filename, :titre, :auteur, :image, :resume, :classification)"); $upload->bindParam(':filename', $filename); $upload->bindParam(':titre', htmlspecialchars($_POST['article-titre'])); - $upload->bindParam(':auteur', $_SESSION['display_name']); + $upload->bindParam(':auteur', $_SESSION['userid']); $upload->bindParam(':image', htmlspecialchars($_POST['article-image'])); $upload->bindParam(':resume', htmlspecialchars($_POST['article-resume'])); $upload->bindParam(':classification', $_POST['classification']);