diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 951621df458..befb225911f 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -219,10 +219,6 @@ if ($action == 'add' && $canadduser) $edituser->entity = (empty($_POST["entity"]) ? 0 : $_POST["entity"]); } } - else if (! empty($_POST["admin"])) - { - $edituser->entity=0; - } else { $edituser->entity = (empty($_POST["entity"]) ? 0 : $_POST["entity"]); @@ -337,10 +333,6 @@ if ($action == 'update' && ! $_POST["cancel"]) $edituser->entity = (empty($_POST["entity"]) ? 0 : $_POST["entity"]); } } - else if(! empty($_POST["admin"])) - { - $edituser->entity=0; - } else { $edituser->entity = (empty($_POST["entity"]) ? 0 : $_POST["entity"]);