mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
Merge pull request #53 from swarnat/fix-denic-rdap-compatibility
fix: `events` key may be missing from RDAP responses
This commit is contained in:
@@ -232,6 +232,7 @@ readonly class RDAPService
|
|||||||
$event->setDeleted(true);
|
$event->setDeleted(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (array_key_exists('events', $res) && is_array($res['events'])) {
|
||||||
foreach ($res['events'] as $rdapEvent) {
|
foreach ($res['events'] as $rdapEvent) {
|
||||||
if ($rdapEvent['eventAction'] === EventAction::LastUpdateOfRDAPDatabase->value) {
|
if ($rdapEvent['eventAction'] === EventAction::LastUpdateOfRDAPDatabase->value) {
|
||||||
continue;
|
continue;
|
||||||
@@ -252,6 +253,7 @@ readonly class RDAPService
|
|||||||
->setDeleted(false)
|
->setDeleted(false)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** @var DomainEntity $domainEntity */
|
/** @var DomainEntity $domainEntity */
|
||||||
foreach ($domain->getDomainEntities()->getIterator() as $domainEntity) {
|
foreach ($domain->getDomainEntities()->getIterator() as $domainEntity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user