Fixed a stupid bug

This commit is contained in:
Pinga 2023-03-01 16:23:26 +02:00 committed by GitHub
parent 05e08ddd11
commit 8623c23763
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1304,7 +1304,7 @@ class Registrar_Adapter_EPP extends Registrar_AdapterAbstract
if (fwrite($this->socket, pack('N', (strlen($xml) + 4)) . $xml) === false) { if (fwrite($this->socket, pack('N', (strlen($xml) + 4)) . $xml) === false) {
throw new exception('Error writing to the connection.'); throw new exception('Error writing to the connection.');
} }
$r = simplexml_load_string($this->readResponse()); $r = simplexml_load_string($this->read());
if (isset($r->response) && $r->response->result->attributes()->code >= 2000) { if (isset($r->response) && $r->response->result->attributes()->code >= 2000) {
throw new exception($r->response->result->msg); throw new exception($r->response->result->msg);
} }