fix edit profil

This commit is contained in:
Fred Tempez 2023-12-01 15:20:24 +01:00
parent 0253e55de2
commit 88fd7e5d49

View File

@ -648,7 +648,10 @@ class user extends common
) { ) {
$fileManager = false; $fileManager = false;
} }
if ($profil !== $profil) { if (
$profil !== $oldProfil &&
$this->deleteData(['profil', $group, $oldProfil])
) {
$this->deleteData(['profil', $group, $oldProfil]); $this->deleteData(['profil', $group, $oldProfil]);
} }
// Données du formulaire // Données du formulaire