CARIA.2.1.1

MAJ gitignore
Résolution  bug suppression d'avatar
This commit is contained in:
ccunatbrule
2024-05-31 15:39:07 +02:00
parent 121bade1a9
commit e88f02fa95
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@@ -1 +1,4 @@
Thumbs.db Thumbs.db
.DS_Store
/config/connexion_sql.php
/module

View File

@@ -241,7 +241,7 @@ function post_RemoveClient($id) {
$req->execute(); $req->execute();
$userData = $req->fetch(PDO::FETCH_ASSOC); $userData = $req->fetch(PDO::FETCH_ASSOC);
if ($userData) { if ($userData) {
$imagePath = $userData['avatar']; $imagePath = "." . $userData['avatar'];
if (file_exists($imagePath)) { if (file_exists($imagePath)) {
unlink($imagePath); unlink($imagePath);
} }