CARIA.2.1.1
MAJ gitignore Résolution bug suppression d'avatar
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user