From 0fe4c582a156a96e4da088511bc5b9c4ed6af55a Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Wed, 5 Jul 2023 17:58:01 +0200 Subject: [PATCH] Le profil des memebrs sans profil (bannis, visiteurs et admin, vaut 0) --- core/module/user/user.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index d01325da..92872718 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -98,8 +98,8 @@ class user extends common // Profil $group = $this->getInput('userAddGroup', helper::FILTER_INT, true); - $profil = null; - if ($group > 1 || $group < 2) { + $profil = 0; + if ($group === 1 || $group === 2) { $profil = $this->getInput('userAddProfil' . $group, helper::FILTER_INT); } @@ -303,8 +303,8 @@ class user extends common $newlastname = $this->getData(['user', $this->getUrl(2), 'lastname']); } // Profil - $profil = null; - if ($newGroup > 1 || $newGroup < 2) { + $profil = 0; + if ($newGroup === 1 || $newGroup === 2) { $profil = $this->getInput('userEditProfil' . $newGroup, helper::FILTER_INT); } // Modifie l'utilisateur