diff --git a/core/module/user/user.php b/core/module/user/user.php index dbfe5a3f..7810a1ab 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -94,7 +94,7 @@ class user extends common // Profil $group = $this->getInput('userAddGroup', helper::FILTER_INT, true); $profil = null; - if ($group < 1 || $group > 2 ) { + if ($group > 1 || $group < 2 ) { $profil = $this->getInput('userAddProfil' . $group, helper::FILTER_INT); } diff --git a/core/module/user/view/add/add.php b/core/module/user/view/add/add.php index a9fffc9b..997b579f 100644 --- a/core/module/user/view/add/add.php +++ b/core/module/user/view/add/add.php @@ -87,21 +87,19 @@

-
+
'Groupe', 'selected' => self::GROUP_MEMBER ]); ?>
-
+
'Profil', ]); ?>
-
-
'Profil',