fix edit profil

This commit is contained in:
Fred Tempez 2023-12-01 15:19:28 +01:00
parent 706eec43c9
commit ce6913fc22

View File

@ -645,7 +645,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