Skip to content

Commit

Permalink
Fix OpenSrs getInfo() when nameserver_list is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
uphlewis committed Dec 5, 2024
1 parent 818759c commit 7ae21be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenSRS/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ private function _getInfo(string $sld, string $tld, string $message): DomainResu
return $status === '' ? 'n/a' : (string)$status;
}, $statusRaw['attributes']),
'registrant' => OpenSrsApi::parseContact($domainRaw['attributes']['contact_set'], OpenSrsApi::CONTACT_TYPE_REGISTRANT),
'ns' => OpenSrsApi::parseNameServers($domainRaw['attributes']['nameserver_list']),
'ns' => OpenSrsApi::parseNameServers($domainRaw['attributes']['nameserver_list'] ?? []),
'created_at' => $domainRaw['attributes']['registry_createdate'],
'updated_at' => $domainRaw['attributes']['registry_updatedate'] ?? $domainRaw['attributes']['registry_createdate'],
'expires_at' => $domainRaw['attributes']['expiredate'],
Expand Down

0 comments on commit 7ae21be

Please sign in to comment.