From a7cc6ee6d066b516b5ac51339bb3b3b8c4f69832 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 30 Nov 2023 14:26:19 +0100 Subject: [PATCH] =?UTF-8?q?count=20valide=20r=C3=B4les?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/user/user.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index 3e4174e9..df7fb837 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -483,7 +483,9 @@ class user extends common if ($this->getData(['user', $userId, 'group'])) { // Compte les rĂ´les - $profils[$this->getData(['user', $userId, 'group']) . $this->getData(['user', $userId, 'profil'])]++; + if (isset($profils[$this->getData(['user', $userId, 'group']) . $this->getData(['user', $userId, 'profil'])])) { + $profils[$this->getData(['user', $userId, 'group']) . $this->getData(['user', $userId, 'profil'])]++; + } // Filtres if ($this->isPost()) {