diff --git a/Sources/User.php b/Sources/User.php index 2e02eb8822..ac3e72cbd0 100644 --- a/Sources/User.php +++ b/Sources/User.php @@ -4051,7 +4051,7 @@ public static function membersAllowedTo(string $permission, ?int $board_id = nul ); // We only want the member IDs, not id_member - $members = array_values(Db::$db->fetch_all($request)); + $members = array_map(fn ($row) => $row['id_member'], Db::$db->fetch_all($request)); Db::$db->free_result($request); return $members;