From 44ac9a25a6760e2c24884d92e162da86454e52ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Thu, 9 Jan 2025 19:56:43 +0100 Subject: [PATCH] Bug User Import userId undefine --- core/module/user/user.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index 5ebb87b4..110c8353 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -1400,12 +1400,13 @@ class user extends common $item['groupe'] = ($item['groupe'] >= self::GROUP_BANNED and $item['groupe'] <= self::GROUP_ADMIN) ? $item['groupe'] : 1; // L'utilisateur existe - if ($this->getData(['user', helper::filter($item['id'], helper::FILTER_ID)])) { + $userId = helper::filter($item['id'], helper::FILTER_ID); + if ($this->getData(['user', $userId])) { // Notification du doublon $item['notification'] = template::ico('cancel'); // Création du tableau de confirmation self::$users[] = [ - helper::filter($item['id'], helper::FILTER_ID), + $userId, $item['nom'], $item['prenom'], self::$groups[$item['groupe']], @@ -1420,7 +1421,6 @@ class user extends common // L'utilisateur n'existe pas } else { // Nettoyage de l'identifiant - $userId = helper::filter($item['id'], helper::FILTER_ID); // Enregistre le user $create = $this->setData([ 'user',