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']);