diff --git a/lib/object_coordination/adminuser/adminuser.php b/lib/object_coordination/adminuser/adminuser.php index b885143..23175be 100755 --- a/lib/object_coordination/adminuser/adminuser.php +++ b/lib/object_coordination/adminuser/adminuser.php @@ -869,12 +869,9 @@ function exportAdmin() $user_account_active = $MyUser->getAccountActive(); if( $user_account_active == "on" ) - $user_account_active = "off"; + $MyUser->setAccountActive("off"); elseif( $user_account_active == "off" ) - $user_account_active = "on"; - - //On enregistre les modifications de l'objet User - $MyUser->setAccountActive($user_account_active); + $MyUser->setAccountActive("on"); //On enregistre les paramètres $ObjUsersave = $GLOBALS["SYSTEM_MANAGER"]["USER"]->saveInstance($MyUser);