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";