diff --git a/htdocs/soc.php b/htdocs/soc.php index be39e912813..2e9f769f667 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -79,75 +79,76 @@ $form = new Form($db); if ($_GET["action"] == 'create') { - if ($user->rights->societe->creer) { - /* - * Fiche societe en mode création - */ - $soc = new Societe($db); - if ($_GET["type"]=='f') { $soc->fournisseur=1; } - if ($_GET["type"]=='c') { $soc->client=1; } - if ($_GET["type"]=='p') { $soc->client=2; } + if ($user->rights->societe->creer) + { + /* + * Fiche societe en mode création + */ + $soc = new Societe($db); + if ($_GET["type"]=='f') { $soc->fournisseur=1; } + if ($_GET["type"]=='c') { $soc->client=1; } + if ($_GET["type"]=='p') { $soc->client=2; } + + print '