From 8556308290b00926369784d340ece1d008a78a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Fri, 31 Oct 2025 15:49:18 +0100 Subject: [PATCH] fix: check if NS status exists --- src/Service/RDAPService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index 3113d4b..fb5312c 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -491,8 +491,8 @@ class RDAPService $nameserverEntity = new NameserverEntity(); } - if (isset($rdapEntity['status']) && is_array($rdapEntity['status'])) { - $nameserverEntity->setStatus($rdapNameserver['status']); + if (isset($rdapNameserver['status']) && is_array($rdapNameserver['status'])) { + $nameserverEntity->setStatus(array_map(fn ($s) => strtolower($s), array_unique($rdapNameserver['status']))); } $nameserver->addNameserverEntity($nameserverEntity