From b12101a650545e78cf024ea66699c936228c56f6 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 23 Jan 2013 15:11:33 +0100 Subject: [PATCH] Fix: only once superadmin if no multicompany setup --- htdocs/user/fiche.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/htdocs/user/fiche.php b/htdocs/user/fiche.php index 52ca3932fdb..095a14ab439 100644 --- a/htdocs/user/fiche.php +++ b/htdocs/user/fiche.php @@ -223,10 +223,6 @@ if ($action == 'add' && $canadduser) $object->entity = (empty($_POST["entity"]) ? 0 : $_POST["entity"]); } } - else if (! empty($_POST["admin"])) - { - $object->entity=0; - } else { $object->entity = (empty($_POST["entity"]) ? 0 : $_POST["entity"]); @@ -372,10 +368,6 @@ if ($action == 'update' && ! $_POST["cancel"]) $object->entity = (empty($_POST["entity"]) ? 0 : $_POST["entity"]); } } - else if(! empty($_POST["admin"])) - { - $object->entity=0; - } else { $object->entity = (empty($_POST["entity"]) ? 0 : $_POST["entity"]); @@ -1582,7 +1574,7 @@ else print '
'; print ''; print ''; - print ''; + print ''; print ''; $rowspan=13;