Update epp.php
This commit is contained in:
parent
a5b7f26985
commit
980236ba59
1 changed files with 3 additions and 3 deletions
6
epp.php
6
epp.php
|
@ -1305,9 +1305,9 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract
|
|||
throw new exception('Error writing to the connection.');
|
||||
}
|
||||
$r = simplexml_load_string($this->readResponse());
|
||||
if ($r->response->result->attributes()->code >= 2000) {
|
||||
throw new exception($r->response->result->msg);
|
||||
}
|
||||
if (isset($r->response) && $r->response->result->attributes()->code >= 2000) {
|
||||
throw new EppException($r->response->result->msg);
|
||||
}
|
||||
return $r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue