From 5fd2d3e4e7ce49c584abc45f1b76b8b3415d921d Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 02:08:50 +0000 Subject: [PATCH] Update file upload.php --- html/upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/upload.php b/html/upload.php index 0f0a5279..bc6ac519 100644 --- a/html/upload.php +++ b/html/upload.php @@ -16,9 +16,9 @@ if(isset($_POST['title']) && isset($_FILES['file'])) { $upload->bindParam(':titre', htmlspecialchars($_POST['titre'])); $upload->bindParam(':auteur', $_SESSION['display_name']); if (isset($_POST['date']) && empty($_POST['date']) == false) { - $bdd->bindParam(':date', htmlspecialchars($_POST['date'])); + $upload->bindParam(':date', htmlspecialchars($_POST['date'])); } else { - $bdd->bindParam(':date', date()); + $upload->bindParam(':date', date()); } if($upload->execute()) { $status = "Uploaded";