mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
Merge branch 'master' into feat/rss-feed
This commit is contained in:
commit
f690b6aa01
@ -545,11 +545,30 @@ readonly class RDAPService
|
|||||||
|
|
||||||
if (isset($rdapEntity['vcardArray']) && !in_array($rdapEntity['handle'], self::IANA_RESERVED_IDS)) {
|
if (isset($rdapEntity['vcardArray']) && !in_array($rdapEntity['handle'], self::IANA_RESERVED_IDS)) {
|
||||||
if (empty($entity->getJCard())) {
|
if (empty($entity->getJCard())) {
|
||||||
$entity->setJCard($rdapEntity['vcardArray']);
|
if (!array_key_exists('elements', $rdapEntity['vcardArray'])) {
|
||||||
|
$entity->setJCard($rdapEntity['vcardArray']);
|
||||||
|
} else {
|
||||||
|
/*
|
||||||
|
* UZ registry
|
||||||
|
*/
|
||||||
|
$entity->setJCard([
|
||||||
|
'vcard',
|
||||||
|
$rdapEntity['vcardArray']['elements'],
|
||||||
|
]);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$properties = [];
|
$properties = [];
|
||||||
foreach ($rdapEntity['vcardArray'][1] as $prop) {
|
if (!array_key_exists('elements', $rdapEntity['vcardArray'])) {
|
||||||
$properties[$prop[0]] = $prop;
|
foreach ($rdapEntity['vcardArray'][1] as $prop) {
|
||||||
|
$properties[$prop[0]] = $prop;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
/*
|
||||||
|
* UZ registry
|
||||||
|
*/
|
||||||
|
foreach ($rdapEntity['vcardArray']['elements'] as $prop) {
|
||||||
|
$properties[$prop[0]] = $prop;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
foreach ($entity->getJCard()[1] as $prop) {
|
foreach ($entity->getJCard()[1] as $prop) {
|
||||||
$properties[$prop[0]] = $prop;
|
$properties[$prop[0]] = $prop;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user