clean some messy ripe records
This commit is contained in:
parent
1ff02ad821
commit
8720b998da
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
2005/10/142 David Saez <david@ols.es>
|
||||
- clean some messy ripe records
|
||||
|
||||
2005/10/12 David Saez <david@ols.es>
|
||||
- added compatibility with PHP versions prior 4.3.0
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class ripe_handler
|
|||
'nic-hdl' => 'handle',
|
||||
'person' => 'name',
|
||||
'netname' => 'name',
|
||||
'descr' => 'desc'
|
||||
'descr' => 'desc'
|
||||
);
|
||||
|
||||
$contacts = array(
|
||||
|
@ -67,7 +67,13 @@ class ripe_handler
|
|||
$r['abuse']['email'] = $r['tech']['abuse-mailbox'];
|
||||
unset($r['tech']['abuse-mailbox']);
|
||||
}
|
||||
|
||||
|
||||
// Clean mess
|
||||
if (isset($r['tech']['tech-c'])) unset($r['tech']['tech-c']);
|
||||
if (isset($r['tech']['admin-c'])) unset($r['tech']['admin-c']);
|
||||
if (isset($r['admin']['tech-c'])) unset($r['admin']['tech-c']);
|
||||
if (isset($r['admin']['admin-c'])) unset($r['admin']['admin-c']);
|
||||
|
||||
return $r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue