From cf08973d5b5c9d619d6d879bed328078bd108c25 Mon Sep 17 00:00:00 2001 From: Esteban Date: Fri, 5 Jun 2026 16:55:57 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20bug=20qui=20ne=20permettait?= =?UTF-8?q?=20plus=20de=20cr=C3=A9er=20des=20projets=20/=20XP=20(mtn=20fix?= =?UTF-8?q?=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/addProject.php | 2 +- scripts/addXP.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/addProject.php b/scripts/addProject.php index 860a0f4..36f2216 100644 --- a/scripts/addProject.php +++ b/scripts/addProject.php @@ -15,7 +15,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $title = $_POST['title'] ?? ''; $tags = $_POST['tags'] ?? ''; $description = $_POST['description'] ?? ''; - $image_url = $_POST['image_url'] ?? ''; + $image_url = $_POST['imageurl'] ?? ''; // On vérifie que les champs obligatoires ne sont pas vide if (!empty($title) && !empty($description) && !empty($image_url)) { diff --git a/scripts/addXP.php b/scripts/addXP.php index 7bcd0c3..baf663d 100644 --- a/scripts/addXP.php +++ b/scripts/addXP.php @@ -17,7 +17,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $tags = $_POST['tags'] ?? ''; $description = $_POST['description'] ?? ''; $duration = $_POST['duration'] ?? ''; - $image_url = $_POST['image_url'] ?? ''; + $image_url = $_POST['imageurl'] ?? ''; // On vérifie que les champs obligatoires ne sont pas vide if (!empty($title) && !empty($description) && !empty($image_url)) {