diff --git a/lib/php/Converter.php b/lib/php/Converter.php index ada5153..19ef054 100644 --- a/lib/php/Converter.php +++ b/lib/php/Converter.php @@ -1410,7 +1410,7 @@ public function convertNetworkInventory(array $data): array foreach ($data['content']['network_ports'] as &$netport) { if (isset($netport['vlans'])) { $netport['vlans'] = is_array($netport['vlans']['vlan']) - && array_is_list($netport['vlans']['vlan']) + && array_is_list($netport['vlans']['vlan']) ? $netport['vlans']['vlan'] : [$netport['vlans']['vlan']]; }