From 88fd7e5d49632d14efcb364178f3651e987f00aa Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 1 Dec 2023 15:20:24 +0100 Subject: [PATCH] fix edit profil --- core/module/user/user.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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