Skip to content

Commit

Permalink
Update epp.php
Browse files Browse the repository at this point in the history
  • Loading branch information
getpinga authored Feb 16, 2023
1 parent a5b7f26 commit 980236b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions epp.php
Original file line number Diff line number Diff line change
Expand Up @@ -1305,9 +1305,9 @@ public function write($xml)
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;
}

Expand Down

0 comments on commit 980236b

Please sign in to comment.