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); }