From e88f02fa952ce8d4901ca145fda278fb0ba412ac Mon Sep 17 00:00:00 2001 From: ccunatbrule <32840852+DARKNAGAN@users.noreply.github.com> Date: Fri, 31 May 2024 15:39:07 +0200 Subject: [PATCH] CARIA.2.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MAJ gitignore Résolution bug suppression d'avatar --- .gitignore | 5 ++++- modele/profil.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index aafa768..5429272 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -Thumbs.db \ No newline at end of file +Thumbs.db +.DS_Store +/config/connexion_sql.php +/module \ No newline at end of file diff --git a/modele/profil.php b/modele/profil.php index 8fd1fe5..c99b99d 100644 --- a/modele/profil.php +++ b/modele/profil.php @@ -241,7 +241,7 @@ function post_RemoveClient($id) { $req->execute(); $userData = $req->fetch(PDO::FETCH_ASSOC); if ($userData) { - $imagePath = $userData['avatar']; + $imagePath = "." . $userData['avatar']; if (file_exists($imagePath)) { unlink($imagePath); }