Update epp.php

This commit is contained in:
Pinga 2023-02-16 19:46:22 +02:00 committed by GitHub
parent a5b7f26985
commit 980236ba59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}