Skip to content

Commit

Permalink
Update Util.php
Browse files Browse the repository at this point in the history
Filter "none" email address
  • Loading branch information
tobias-nitsche authored Jun 1, 2018
1 parent 7885027 commit f91a394
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@ public function getDCVEMailAddressList(array $params)

if ($responseArray['errorCode'] == 0) {
$result = new GetDCVEMailAddressListResult();

if (isset($responseArray['whois_email'][0]) && $responseArray['whois_email'][0] == 'none') {
unset($responseArray['whois_email'][0]);
}

$result
->setDomainName($responseArray['domain_name'])
Expand Down

0 comments on commit f91a394

Please sign in to comment.