Skip to content

Commit

Permalink
Fixed a stupid bug
Browse files Browse the repository at this point in the history
  • Loading branch information
getpinga committed Mar 1, 2023
1 parent 05e08dd commit 8623c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epp.php
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ public function write($xml)
if (fwrite($this->socket, pack('N', (strlen($xml) + 4)) . $xml) === false) {
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) {
throw new exception($r->response->result->msg);
}
Expand Down

0 comments on commit 8623c23

Please sign in to comment.