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(
|
var $REG_FIELDS = array(
|
||||||
'Domain Name:' => 'regrinfo.domain.name',
|
'Domain Name:' => 'regrinfo.domain.name',
|
||||||
'Registrar:' => 'regyinfo.registrar',
|
'Registrar:' => 'regyinfo.registrar',
|
||||||
'Whois Server:' => 'regyinfo.whois',
|
'Registrar WHOIS Server:' => 'regyinfo.whois',
|
||||||
'Referral URL:' => 'regyinfo.referrer',
|
'Referral URL:' => 'regyinfo.referrer',
|
||||||
'Name Server:' => 'regrinfo.domain.nserver.', // identical descriptors
|
'Name Server:' => 'regrinfo.domain.nserver.', // identical descriptors
|
||||||
'Updated Date:' => 'regrinfo.domain.changed',
|
'Updated Date:' => 'regrinfo.domain.changed',
|
||||||
|
@ -54,7 +54,7 @@ class gtld_handler extends WhoisClient
|
||||||
function parse($data, $query)
|
function parse($data, $query)
|
||||||
{
|
{
|
||||||
$this->Query = array();
|
$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');
|
$this->result = generic_parser_b($data['rawdata'], $this->REG_FIELDS, 'dmy');
|
||||||
|
|
||||||
unset($this->result['registered']);
|
unset($this->result['registered']);
|
||||||
|
|
|
@ -338,7 +338,7 @@ if (!$items)
|
||||||
'Zone Email:' => 'zone.email'
|
'Zone Email:' => 'zone.email'
|
||||||
);
|
);
|
||||||
|
|
||||||
$r = '';
|
$r = [];
|
||||||
$disok = true;
|
$disok = true;
|
||||||
|
|
||||||
while (list($key,$val) = each($rawdata))
|
while (list($key,$val) = each($rawdata))
|
||||||
|
|
Loading…
Reference in a new issue