CARIA.2.1.1
MAJ gitignore Résolution bug suppression d'avatar
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,4 @@
|
|||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
.DS_Store
|
||||||
|
/config/connexion_sql.php
|
||||||
|
/module
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user