diff --git a/domainbank.whois b/domainbank.whois index 6f75adf..009e61f 100644 --- a/domainbank.whois +++ b/domainbank.whois @@ -52,10 +52,15 @@ class domainbank extends gtld { ); $r = get_blocks($data_str,$items); - $r["owner"] = get_contact($r["owner"]); - $r["admin"] = get_contact($r["admin"]); - $r["tech"] = get_contact($r["tech"]); - $r["zone"] = get_contact($r["zone"]); + + if (isset($r["owner"])) + $r["owner"] = get_contact($r["owner"]); + if (isset($r["admin"])) + $r["admin"] = get_contact($r["admin"]); + if (isset($r["tech"])) + $r["tech"] = get_contact($r["tech"]); + if (isset($r["zone"])) + $r["zone"] = get_contact($r["zone"]); return($r); } }