From da2c0b64408dc43ccd401034881ea4f05d6c0970 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Wed, 3 May 2023 22:59:15 +0200 Subject: [PATCH] add Okay --- core/module/user/user.php | 2 +- core/module/user/view/add/add.php | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) 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',