warning fix

This commit is contained in:
sparc 2011-07-08 18:56:36 +00:00
parent 1627054a56
commit 745df4c8ef
2 changed files with 3 additions and 2 deletions

View file

@ -283,7 +283,8 @@ class Whois extends WhoisClient
{
if ($this->deep_whois && empty($result['regrinfo']['domain']['nserver']) && function_exists('dns_get_record'))
{
$ns = dns_get_record($this->Query['query'],DNS_NS);
$ns = @dns_get_record($this->Query['query'],DNS_NS);
if (!is_array($ns)) return;
$nserver = array();
foreach($ns as $row) $nserver[] = $row['target'];
if (count($nserver) > 0)

File diff suppressed because one or more lines are too long