minor fix

This commit is contained in:
sparc 2007-02-06 11:07:25 +00:00
parent e669872f13
commit 5f90802ea6
2 changed files with 9 additions and 9 deletions

View file

@ -400,27 +400,27 @@ class WhoisClient {
* Does more (deeper) whois ...
*/
function DeepWhois ($query) {
function DeepWhois ($query, $result) {
if (isset($this->result['regyinfo']['whois']))
$this->Query['server'] = $this->result['regyinfo']['whois'];
if (isset($result['regyinfo']['whois']))
$this->Query['server'] = $result['regyinfo']['whois'];
$subresult = $this->GetData($query);
if (isset($subresult['rawdata']))
{
$this->result['rawdata'] = $subresult['rawdata'];
$result['rawdata'] = $subresult['rawdata'];
@$this->Query['handler'] = $this->WHOIS_HANDLER[$this->result['regyinfo']['whois']];
@$this->Query['handler'] = $this->WHOIS_HANDLER[$result['regyinfo']['whois']];
if (!empty($this->Query['handler']))
{
$this->Query['file'] = sprintf('whois.gtld.%s.php', $this->Query['handler']);
$regrinfo = $this->Process($this->result['rawdata']);
$this->result['regrinfo'] = $this->merge_results($this->result['regrinfo'], $regrinfo);
$regrinfo = $this->Process($result['rawdata']);
$result['regrinfo'] = $this->merge_results($result['regrinfo'], $regrinfo);
}
}
return $this->result;
return $result;
}
/*

View file

@ -75,7 +75,7 @@ class gtld_handler extends WhoisClient
$this->result['regrinfo']['registered'] = 'yes';
if ($this->deep_whois) $this->DeepWhois($query);
if ($this->deep_whois) $this->result = $this->DeepWhois($query,$this->result);
return $this->result;
}