diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php index b8630f53739..c499daed4d9 100644 --- a/htdocs/user/perms.php +++ b/htdocs/user/perms.php @@ -8,6 +8,7 @@ * Copyright (C) 2020 Tobias Sekan * Copyright (C) 2024 MDW * Copyright (C) 2024-2025 Frédéric France + * Copyright (C) 2025-2026 Charlene Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -503,6 +504,10 @@ if ($result) { $obj->family = 'other'; } + // Si la famille n'existe pas dans $familyinfo, on utilise 'other' + if (!empty($obj->family) && !isset($familyinfo[$obj->family])) { + $obj->family = 'other'; + } if (empty($obj->family_position)) { $obj->family_position = $familyinfo[$obj->family]['position']; if ($obj->module_position < 100000) {