Merge pull request #6 from texh/fix/issue-4
[Bugfix] Type error - Addresses #4
This commit is contained in:
commit
f55ba784c8
2 changed files with 5 additions and 5 deletions
|
@ -37,7 +37,7 @@ class gtld_handler extends WhoisClient
|
|||
var $REG_FIELDS = array(
|
||||
'Domain Name:' => 'regrinfo.domain.name',
|
||||
'Registrar:' => 'regyinfo.registrar',
|
||||
'Whois Server:' => 'regyinfo.whois',
|
||||
'Registrar WHOIS Server:' => 'regyinfo.whois',
|
||||
'Referral URL:' => 'regyinfo.referrer',
|
||||
'Name Server:' => 'regrinfo.domain.nserver.', // identical descriptors
|
||||
'Updated Date:' => 'regrinfo.domain.changed',
|
||||
|
@ -54,7 +54,7 @@ class gtld_handler extends WhoisClient
|
|||
function parse($data, $query)
|
||||
{
|
||||
$this->Query = array();
|
||||
$this->SUBVERSION = sprintf('%s-%s', $query['handler'], $this->HANDLER_VERSION);
|
||||
$this->SUBVERSION = sprintf('%s-%s', get_class($this), $this->HANDLER_VERSION);
|
||||
$this->result = generic_parser_b($data['rawdata'], $this->REG_FIELDS, 'dmy');
|
||||
|
||||
unset($this->result['registered']);
|
||||
|
@ -78,4 +78,4 @@ class gtld_handler extends WhoisClient
|
|||
return $this->result;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -338,7 +338,7 @@ if (!$items)
|
|||
'Zone Email:' => 'zone.email'
|
||||
);
|
||||
|
||||
$r = '';
|
||||
$r = [];
|
||||
$disok = true;
|
||||
|
||||
while (list($key,$val) = each($rawdata))
|
||||
|
@ -884,4 +884,4 @@ else
|
|||
|
||||
return sprintf("%.4d-%02d-%02d",$res['y'],$res['m'],$res['d']);
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue