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

View File

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