diff --git a/core/module/user/user.php b/core/module/user/user.php index df7fb837..0cea250c 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -648,7 +648,10 @@ class user extends common ) { $fileManager = false; } - if ($profil !== $profil) { + if ( + $profil !== $oldProfil && + $this->deleteData(['profil', $group, $oldProfil]) + ) { $this->deleteData(['profil', $group, $oldProfil]); } // Données du formulaire